Index: branches/pap/psModules/src/imcombine/pmStack.c
===================================================================
--- branches/pap/psModules/src/imcombine/pmStack.c	(revision 25948)
+++ branches/pap/psModules/src/imcombine/pmStack.c	(revision 25960)
@@ -33,7 +33,7 @@
 #define NUM_DIRECT_STDEV 5              // For less than this number of values, measure stdev directly
 
-//#define TESTING                         // Enable test output
-//#define TEST_X 3349-1                     // x coordinate to examine
-//#define TEST_Y 2278-1                     // y coordinate to examine
+#define TESTING                         // Enable test output
+#define TEST_X 1748-1                     // x coordinate to examine
+#define TEST_Y 1339-1                     // y coordinate to examine
 
 
@@ -421,8 +421,10 @@
           }
 #ifdef TESTING
-          else if (x == TEST_X && y == TEST_Y) {
-              fprintf(stderr, "Single input to combine, safety on, pixel is bad.\n");
+          else {
+              numRejected = 1;
+              if (x == TEST_X && y == TEST_Y) {
+                  fprintf(stderr, "Single input to combine, safety on, pixel is bad.\n");
+              }
           }
-          numRejected = 1;
 #endif
           break;
@@ -572,4 +574,9 @@
                   }
                   float diff = pixelData->data.F32[j] - median; // Difference from expected
+#ifdef TESTING
+                  if (x == TEST_X && y == TEST_Y) {
+                      fprintf(stderr, "Testing input %d for rejection: %f\n", j, diff);
+                  }
+#endif
                   if (useVariance) {
                       // Comparing squares --- cheaper than lots of sqrts
