Index: /trunk/ppImage/src/ppImageLoop.c
===================================================================
--- /trunk/ppImage/src/ppImageLoop.c	(revision 18908)
+++ /trunk/ppImage/src/ppImageLoop.c	(revision 18909)
@@ -11,6 +11,6 @@
 }
 
-bool ppImageLoop (pmConfig *config, ppImageOptions *options) {
-
+bool ppImageLoop (pmConfig *config, ppImageOptions *options)
+{
     bool status;
     pmChip *chip;
@@ -27,4 +27,15 @@
         exit(PS_EXIT_PROG_ERROR);
     }
+
+#if 1
+    {
+        pmConfigCamerasCull(config);
+        pmConfigRecipesCull(config, "PPIMAGE,PPSTATS,PSPHOT,MASKS");
+
+        const char *outroot = psMetadataLookupStr(NULL, config->arguments, "OUTPUT"); // Output root name
+        psAssert(outroot, "Should be there, we put it there!");
+        pmConfigDump(config, input->fpa, outroot);
+    }
+#endif
 
     pmFPAview *view = pmFPAviewAlloc(0);// View for level of interest
@@ -63,12 +74,12 @@
                 }
 
-		// XXX set the options->*Mask values here (after the mask images have been loaded
-		// and before any of the value are used)
-		if (!ppImageSetMaskBits (config, options)) 
-		    ESCAPE ("Unable to set bit masks");
+                // XXX set the options->*Mask values here (after the mask images have been loaded
+                // and before any of the value are used)
+                if (!ppImageSetMaskBits (config, options))
+                    ESCAPE ("Unable to set bit masks");
 
                 // perform the detrend analysis
-                if (!ppImageDetrendReadout(config, options, view)) 
-		    ESCAPE ("Unable to detrend readout");
+                if (!ppImageDetrendReadout(config, options, view))
+                    ESCAPE ("Unable to detrend readout");
             }
         }
@@ -76,11 +87,11 @@
         // Apply the fringe correction
         if (options->doFringe) {
-	    if (!ppImageDetrendFringeApply (config, chip, view, options)) 
-		ESCAPE ("Unable to defringe");
-	}
-	
-	// measure various statistics for this image
-	if (!ppImagePixelStats (config, options, view)) 
-	    ESCAPE ("Unable to measures stats for image");
+            if (!ppImageDetrendFringeApply (config, chip, view, options))
+                ESCAPE ("Unable to defringe");
+        }
+
+        // measure various statistics for this image
+        if (!ppImagePixelStats (config, options, view))
+            ESCAPE ("Unable to measures stats for image");
 
         if (!ppImageMosaicChip(config, options, view, "PPIMAGE.CHIP", "PPIMAGE.OUTPUT"))
@@ -92,11 +103,11 @@
         }
 
-	// replace the masked pixels with the background level
-	if (options->replaceMasked) {
-	    if (!ppImageReplaceBackground (config, view, options)) 
-		ESCAPE ("Unable to replace masked pixels with background level");
-	}
+        // replace the masked pixels with the background level
+        if (options->replaceMasked) {
+            if (!ppImageReplaceBackground (config, view, options))
+                ESCAPE ("Unable to replace masked pixels with background level");
+        }
 
-	// binning (used for display) must take place after the background is replaced, if desired
+        // binning (used for display) must take place after the background is replaced, if desired
         if (!ppImageRebinChip(config, view, options, "PPIMAGE.BIN1"))
             ESCAPE ("Unable to bin chip (level 1).");
@@ -129,5 +140,5 @@
 
     if (psTraceGetLevel("ppImage") >= 3) {
-	ppImageFileCheck (config);
+        ppImageFileCheck (config);
     }
 
