Index: trunk/ppStack/src/ppStackPSF.c
===================================================================
--- trunk/ppStack/src/ppStackPSF.c	(revision 25413)
+++ trunk/ppStack/src/ppStackPSF.c	(revision 25414)
@@ -14,4 +14,5 @@
                   const psArray *psfs, const psVector *inputMask)
 {
+#ifndef TESTING
     // Get the recipe values
     psMetadata *recipe = psMetadataLookupMetadata(NULL, config->recipes, PPSTACK_RECIPE); // ppStack recipe
@@ -30,12 +31,4 @@
     }
 
-#ifdef TESTING
-    // Dummy PSF
-    pmPSF *psf = pmPSFBuildSimple("PS_MODEL_GAUSS", 7.0, 7.0, 0.0);
-    if (!psf) {
-        psError(PS_ERR_UNKNOWN, false, "Unable to build dummy PSF.");
-        return NULL;
-    }
-#else
     // Solve for the target PSF
     pmPSF *psf = pmPSFEnvelope(numCols, numRows, psfs, psfInstances, psfRadius, psfModel,
@@ -45,4 +38,11 @@
         return NULL;
     }
+#else
+    // Dummy PSF
+    pmPSF *psf = pmPSFBuildSimple("PS_MODEL_GAUSS", 7.0, 7.0, 0.0);
+    if (!psf) {
+        psError(PS_ERR_UNKNOWN, false, "Unable to build dummy PSF.");
+        return NULL;
+    }
 #endif
 
