Index: trunk/ppStack/src/ppStackPhotometry.c
===================================================================
--- trunk/ppStack/src/ppStackPhotometry.c	(revision 26922)
+++ trunk/ppStack/src/ppStackPhotometry.c	(revision 26923)
@@ -66,4 +66,5 @@
     }
 
+    pmModelClassSetLimits(PM_MODEL_LIMITS_IGNORE);
     if (!psphotReadoutKnownSources(config, photView, inSources)) {
         // This is likely a data quality issue
@@ -91,10 +92,10 @@
         pmReadout *photRO = pmFPAviewThisReadout(photView, photFile->fpa); // Readout with the sources
         pmDetections *detections = psMetadataLookupPtr(NULL, photRO->analysis, "PSPHOT.DETECTIONS"); // detections
-	if (detections) {
-	    psAssert (detections->allSources, "missing sources?");
-	    psMetadataAddS32(options->stats, PS_LIST_TAIL, "NUM_SOURCES", 0, "Number of sources detected", detections->allSources->n);
-	} else {
-	    psMetadataAddS32(options->stats, PS_LIST_TAIL, "NUM_SOURCES", 0, "Number of sources detected", 0);
-	}
+        if (detections) {
+            psAssert (detections->allSources, "missing sources?");
+            psMetadataAddS32(options->stats, PS_LIST_TAIL, "NUM_SOURCES", 0, "Number of sources detected", detections->allSources->n);
+        } else {
+            psMetadataAddS32(options->stats, PS_LIST_TAIL, "NUM_SOURCES", 0, "Number of sources detected", 0);
+        }
         psMetadataAddF32(options->stats, PS_LIST_TAIL, "TIME_PHOT", 0, "Time to do photometry", psTimerMark("PPSTACK_PHOT"));
     }
Index: trunk/psModules/src/detrend/pmPatternIO.c
===================================================================
--- trunk/psModules/src/detrend/pmPatternIO.c	(revision 26922)
+++ trunk/psModules/src/detrend/pmPatternIO.c	(revision 26923)
@@ -77,17 +77,10 @@
     }
 
-    pmFPAview *thisView = pmFPAviewAlloc(view->nRows); // Copy of input view
-    *thisView = *view;
-
-    for (int i = 0; i < cell->readouts->n; i++) {
-        pmReadout *readout = cell->readouts->data[i];
-        thisView->readout = i;
-        if (!pmReadoutWritePattern(readout, file->fits)) {
-            psError(PS_ERR_IO, false, "Failed to write %dth readout", i);
-            psFree(thisView);
-            return false;
-        }
-    }
-    psFree(thisView);
+    // Only do the FIRST readout --- don't want to write lots of headers
+    pmReadout *readout = cell->readouts->data[0];
+    if (!pmReadoutWritePattern(readout, file->fits)) {
+        psError(PS_ERR_IO, false, "Failed to write readout");
+        return false;
+    }
     return true;
 }
