Index: /branches/pap/ppStack/src/ppStackCombineFinal.c
===================================================================
--- /branches/pap/ppStack/src/ppStackCombineFinal.c	(revision 25949)
+++ /branches/pap/ppStack/src/ppStackCombineFinal.c	(revision 25950)
@@ -9,4 +9,6 @@
 #include "ppStack.h"
 #include "ppStackLoop.h"
+
+#define TESTING                         // Enable test output
 
 bool ppStackCombineFinal(pmReadout *target, ppStackThreadData *stack, psArray *covariances,
@@ -84,6 +86,16 @@
 
 #ifdef TESTING
-    pmStackVisualPlotTestImage(target->image, "combined_initial.fits");
-    ppStackWriteImage("combined_final.fits", NULL, target->image, config);
+    static int pass = 0;                // Pass through
+    psString name = NULL;               // Name of file
+    psStringAppend(&name, "combined_image_final_%d.fits", pass);
+    pass++;
+    ppStackWriteImage(name, NULL, target->image, config);
+    psStringSubstitute(&name, "mask", "image");
+    ppStackWriteImage(name, NULL, target->mask, config);
+    psStringSubstitute(&name, "variance", "mask");
+    ppStackWriteImage(name, NULL, target->variance, config);
+    psFree(name);
+
+    pmStackVisualPlotTestImage(target->image, "combined_image_final.fits");
 #endif
 
Index: /branches/pap/ppStack/src/ppStackCombineInitial.c
===================================================================
--- /branches/pap/ppStack/src/ppStackCombineInitial.c	(revision 25949)
+++ /branches/pap/ppStack/src/ppStackCombineInitial.c	(revision 25950)
@@ -9,4 +9,6 @@
 #include "ppStack.h"
 #include "ppStackLoop.h"
+
+#define TESTING                         // Enable test output
 
 bool ppStackCombineInitial(ppStackThreadData *stack, ppStackOptions *options, pmConfig *config)
@@ -83,10 +85,10 @@
 
 #ifdef TESTING
-    ppStackWriteImage("combined_initial.fits", NULL, outRO->image, config);
-    pmStackVisualPlotTestImage(outRO->image, "combined_initial.fits");
+    ppStackWriteImage("combined_image_initial.fits", NULL, options->outRO->image, config);
+    ppStackWriteImage("combined_mask_initial.fits", NULL, options->outRO->mask, config);
+    ppStackWriteImage("combined_variance_initial.fits", NULL, options->outRO->variance, config);
+
+    pmStackVisualPlotTestImage(options->outRO->image, "combined_image_initial.fits");
 #endif
-
-    psFree(options->matchChi2); options->matchChi2 = NULL;
-
 
     if (options->stats) {
Index: /branches/pap/ppStack/src/ppStackLoop.c
===================================================================
--- /branches/pap/ppStack/src/ppStackLoop.c	(revision 25949)
+++ /branches/pap/ppStack/src/ppStackLoop.c	(revision 25950)
@@ -98,5 +98,5 @@
     psTrace("ppStack", 2, "Final stack of convolved images....\n");
     if (!ppStackCombineFinal(options->outRO, stack, options->convCovars, options, config,
-                             false, false, false)) {
+                             true, false, false)) {
         psError(PS_ERR_UNKNOWN, false, "Unable to perform final combination.");
         psFree(stack);
Index: /branches/pap/ppStack/src/ppStackMatch.c
===================================================================
--- /branches/pap/ppStack/src/ppStackMatch.c	(revision 25949)
+++ /branches/pap/ppStack/src/ppStackMatch.c	(revision 25950)
@@ -18,5 +18,5 @@
 #define COVAR_FRAC 0.01                 // Truncation fraction for covariance matrix
 
-//#define TESTING                         // Enable debugging output
+#define TESTING                         // Enable debugging output
 
 #ifdef TESTING
@@ -257,7 +257,7 @@
             psFitsClose(fits);
 
-            if (!readImage(&readout->image, options->imageNames->data[index], config) ||
-                !readImage(&readout->mask, options->maskNames->data[index], config) ||
-                !readImage(&readout->variance, options->varianceNames->data[index], config)) {
+            if (!readImage(&readout->image, options->convImages->data[index], config) ||
+                !readImage(&readout->mask, options->convMasks->data[index], config) ||
+                !readImage(&readout->variance, options->convVariances->data[index], config)) {
                 psError(PS_ERR_IO, false, "Unable to read previously produced image.");
                 return false;
Index: /branches/pap/ppStack/src/ppStackReject.c
===================================================================
--- /branches/pap/ppStack/src/ppStackReject.c	(revision 25949)
+++ /branches/pap/ppStack/src/ppStackReject.c	(revision 25950)
@@ -10,5 +10,5 @@
 #include "ppStackLoop.h"
 
-//#define TESTING
+#define TESTING
 
 bool ppStackReject(ppStackOptions *options, pmConfig *config)
