Index: trunk/ippScripts/scripts/register_imfile.pl
===================================================================
--- trunk/ippScripts/scripts/register_imfile.pl	(revision 25383)
+++ trunk/ippScripts/scripts/register_imfile.pl	(revision 25418)
@@ -34,5 +34,5 @@
 my $ppStatsFromMetadata = can_run( 'ppStatsFromMetadata' ) or (warn "Can't find ppStatsFromMetadata" and $missing_tools = 1);
 
-my ($cache, $exp_id, $tmp_class_id, $tmp_exp_name, $uri, $dbname, $verbose, $no_update, $no_op, $logfile);
+my ($cache, $exp_id, $tmp_class_id, $tmp_exp_name, $uri, $bytes, $md5sum, $dbname, $verbose, $no_update, $no_op, $logfile);
 GetOptions(
     'caches'           => \$cache,
@@ -41,4 +41,6 @@
     'tmp_exp_name|n=s' => \$tmp_exp_name,
     'uri|u=s'          => \$uri,
+    'bytes=s'          => \$bytes,
+    'md5sum=s'         => \$md5sum,
     'dbname|d=s'       => \$dbname,    # Database name
     'verbose'          => \$verbose,   # Print to stdout
@@ -123,4 +125,6 @@
 $command .= " -tmp_class_id $tmp_class_id"; # the original class_id supplied by the user, replace by ppStats CLASS.ID
 $command .= " -uri $uri ";
+$command .= " -bytes $bytes" if $bytes;
+$command .= " -md5sum $md5sum" if $md5sum and ($md5sum ne 'NULL');
 $command .= " -hostname $host" if defined $host;
 $command .= " -dbname $dbname" if defined $dbname;
Index: trunk/ippScripts/scripts/summit_copy.pl
===================================================================
--- trunk/ippScripts/scripts/summit_copy.pl	(revision 25383)
+++ trunk/ippScripts/scripts/summit_copy.pl	(revision 25418)
@@ -105,5 +105,5 @@
 # if so pass the results to pztool to the results in pzDownloadImfile.
 # uncomment this to turn on
-# my ($new_bytes, $new_md5) = check_instances($filename, $nebulous, $compress);
+my ($new_bytes, $new_md5) = check_instances($filename, $nebulous, $compress);
 
 # command to update database
@@ -121,5 +121,5 @@
 # XXX: TODO: see above. Don't do this until pztool and the DB have
 # been updated
-# $command .= " -md5sum $new_md5 -bytes $new_bytes";
+$command .= " -md5sum $new_md5 -bytes $new_bytes";
 
 # update the database
@@ -198,5 +198,5 @@
         if ($b ne $new_bytes) {
             $error = "size of $instances[$i] does not match $instances[0]";
-        } elsif ($m != $new_md5) {
+        } elsif ($m ne $new_md5) {
             $error = "md5sum of $instances[$i] does not match $instances[0]";
         }
