Index: /tags/ipp-test-20130710/ippScripts/scripts/chip_imfile.pl
===================================================================
--- /tags/ipp-test-20130710/ippScripts/scripts/chip_imfile.pl	(revision 35807)
+++ /tags/ipp-test-20130710/ippScripts/scripts/chip_imfile.pl	(revision 35808)
@@ -497,5 +497,5 @@
         $command .= " -R PPIMAGE.CHIP FITS.TYPE NONE";
     }
-    if ($run_state eq "update") {
+    if ($run_state eq 'update') {
 	$command .= " -Db PPIMAGE:MASK.STATS FALSE ";
     }
Index: /tags/ipp-test-20130710/ippScripts/scripts/lap_science.pl
===================================================================
--- /tags/ipp-test-20130710/ippScripts/scripts/lap_science.pl	(revision 35807)
+++ /tags/ipp-test-20130710/ippScripts/scripts/lap_science.pl	(revision 35808)
@@ -33,5 +33,5 @@
 # Global configuration constants that probably should be read from elsewhere.  
 my $qstack_threshold     = 0.05; # Only make a quickstack if more than 5% of the exposures require it.
-my $minimum_stack_inputs = 4;    # We can avoid magicking stack inputs if we have more than this number.
+my $minimum_stack_inputs = 2;    # We can avoid magicking stack inputs if we have more than this number.
 my $do_updates_pv2       = 1;    # Do updates using the calls needed for PV2.  
 
@@ -1025,5 +1025,5 @@
 #    $command .= " -select_label $label "; # Removed to allow exposure sharing to work
     $command .= " -set_label ${label} -set_workdir $workdir -set_data_group $data_group ";
-    $command .= " -min_num ${minimum_stack_inputs} -set_reduction THREEPI_STACK -set_dist_group $exposure->{dist_group} ";
+    $command .= " -min_num ${minimum_stack_inputs} -set_reduction THREEPI_STACK_1DG -set_dist_group $exposure->{dist_group} ";
     $command .= " $warps ";
 
@@ -1106,5 +1106,5 @@
 #    $command .= " -select_label $label "; # Removed to allow exposure sharing to work
     $command .= " -set_label ${label} -set_workdir $workdir -set_data_group $data_group ";
-    $command .= " -min_num 2 -min_new 2 -set_reduction THREEPI_STACK -set_dist_group $exposure->{dist_group} ";
+    $command .= " -min_num 2 -min_new 2 -set_reduction THREEPI_STACK_1DG -set_dist_group $exposure->{dist_group} ";
     $command .= " $warps ";
 
