Index: branches/czw_branch/20101203/ppStack/src/ppStackPhotometry.c
===================================================================
--- branches/czw_branch/20101203/ppStack/src/ppStackPhotometry.c	(revision 29907)
+++ branches/czw_branch/20101203/ppStack/src/ppStackPhotometry.c	(revision 30118)
@@ -54,8 +54,6 @@
     psImageMaskType maskValue = pmConfigMaskGet("BLANK", config); // Bits to mask
     psImageMaskType markValue = pmConfigMaskGet("MARK.VALUE", config); // Bits to use for marking
-    psMetadataAddImageMask(psphot, PS_LIST_TAIL, "MASK.PSPHOT", PS_META_REPLACE,
-                            "Bits to mask", maskValue);
-    psMetadataAddImageMask(psphot, PS_LIST_TAIL, "MARK.PSPHOT", PS_META_REPLACE,
-                           "Bits to use for mark", markValue);
+    psMetadataAddImageMask(psphot, PS_LIST_TAIL, "MASK.PSPHOT", PS_META_REPLACE, "Bits to mask", maskValue);
+    psMetadataAddImageMask(psphot, PS_LIST_TAIL, "MARK.PSPHOT", PS_META_REPLACE, "Bits to use for mark", markValue);
 
     psArray *inSources = options->sources;
@@ -67,5 +65,5 @@
 
     pmModelClassSetLimits(PM_MODEL_LIMITS_LAX);
-    if (!psphotReadoutKnownSources(config, photView, inSources)) {
+    if (!psphotReadoutKnownSources(config, photView, "PSPHOT.INPUT", inSources)) {
         // This is likely a data quality issue
         // XXX Split into multiple cases using error codes?
