Index: /tags/ipp-20110622/ippScripts/scripts/lap_science.pl
===================================================================
--- /tags/ipp-20110622/ippScripts/scripts/lap_science.pl	(revision 31947)
+++ /tags/ipp-20110622/ippScripts/scripts/lap_science.pl	(revision 31948)
@@ -464,4 +464,12 @@
 	my $companion;
 
+	if  ($exposure->{data_state} eq 'drop') { # This exposure is impossible, so fudge the counts so we get through.
+	    $can_qstack ++;
+	    $can_diff ++;
+	    $have_diff ++;
+	    $can_fstack ++;	    
+	    next;
+	}
+
 	if ($exposure->{pairwise}) {
             # Load companion exposure information
@@ -486,4 +494,6 @@
 	    $exposure = remake_this_exposure($exposure);
 	}
+
+
 	# Do quality checks here
 	my $is_bad_quality = 0;
@@ -530,15 +540,6 @@
 	    $exposure->{data_state} = 'drop';
 	    &update_this_exposure($exposure);
-
 	}
 	
-	if  ($exposure->{data_state} eq 'drop') { # This exposure is impossible, so fudge the counts so we get through.
-	    $can_qstack ++;
-	    $can_diff ++;
-	    $have_diff ++;
-	    $can_fstack ++;	    
-	    next;
-	}
-
 	if (($exposure->{warpRun_state})&&  # This exposure has a warp
 	    ($exposure->{warpRun_state} eq 'full')) { # This exposure's warp is done.
@@ -572,4 +573,5 @@
     print "\n";
     if ($do_nothing) {
+	print "STATUS: Doing nothing.\n";
 	exit(0);
     }
@@ -585,4 +587,5 @@
 		&update_this_exposure($exposure);
 	    }
+	    $needs_qstack = 0;
 	}
 	else {
@@ -621,4 +624,5 @@
 	}
     }
+    print "STATUS: Exiting\n";
     print "\n";
     return(0);
