Index: trunk/ippScripts/scripts/chip_imfile.pl
===================================================================
--- trunk/ippScripts/scripts/chip_imfile.pl	(revision 35810)
+++ trunk/ippScripts/scripts/chip_imfile.pl	(revision 35811)
@@ -233,10 +233,6 @@
     if ($do_photom and ($run_state eq 'update')) {
         # If previous psf file is ok skip photometry
-        if ($dump_config || rerun_photometry($outroot, $class_id)) {
+        if (rerun_photometry($outroot, $class_id)) {
             carp "Will rerun photometry\n";
-	    if ($update_mode) {
-		carp "Sorry, update_mode = 1. Will NOT rerun photometry\n";
-		$do_photom = 0;
-	    }
         } else {
             $do_photom = 0;
@@ -497,5 +493,5 @@
         $command .= " -R PPIMAGE.CHIP FITS.TYPE NONE";
     }
-    if ($run_state eq 'update') {
+    if ($run_state eq 'update' and metadataLookupBool($recipeData, 'MASK.STATS')) {
 	$command .= " -Db PPIMAGE:MASK.STATS FALSE ";
     }
