Index: trunk/psphot/src/psphotDeblendSatstars.c
===================================================================
--- trunk/psphot/src/psphotDeblendSatstars.c	(revision 38393)
+++ trunk/psphot/src/psphotDeblendSatstars.c	(revision 38394)
@@ -135,4 +135,10 @@
         N = index->data.U32[i];
         source = sources->data[N];
+
+#ifndef DEBLEND_PASS2_SOURCES
+        // XXX: Need to define this if we want to rerun the satstar stuff again on the pass2 sources
+        // This is needed for psphotStack in -updatemode
+        if ((source->mode2 & PM_SOURCE_MODE2_PASS1_SRC) == 0) continue;
+#endif
 
 	bool isSat = source->mode & PM_SOURCE_MODE_SATSTAR;
@@ -195,4 +201,11 @@
     psFree (SN);
     psFree (index);
+
+#ifdef notdef
+    // XXX Do not commit with this turned enabled
+    // Dump the current readout image. 
+    psphotSaveImage(NULL, readout->image, "satstarsub.fits");
+    psErrorClear();
+#endif
 
     psLogMsg ("psphot", PS_LOG_INFO, "deblend %d satstars: %f sec\n", Nsatstar, psTimerMark ("psphot.deblend.sat"));
