Index: branches/eam_branches/psphot.stack.20100120/src/psphotImageQuality.c
===================================================================
--- branches/eam_branches/psphot.stack.20100120/src/psphotImageQuality.c	(revision 26688)
+++ branches/eam_branches/psphot.stack.20100120/src/psphotImageQuality.c	(revision 26691)
@@ -13,5 +13,5 @@
     psAssert (recipe, "missing recipe?");
 
-    int num = psMetadataAddS32 (&status, config->arguments, "PSPHOT.INPUT.NUM");
+    int num = psMetadataLookupS32 (&status, config->arguments, "PSPHOT.INPUT.NUM");
     psAssert (status, "programming error: must define PSPHOT.INPUT.NUM");
 
@@ -29,4 +29,6 @@
 bool psphotImageQualityReadout(pmConfig *config, const pmFPAview *view, const char *filename, int index, psMetadata *recipe)
 {
+    bool status = true;
+
     // find the currently selected readout
     pmFPAfile *file = pmFPAfileSelectSingle(config->files, filename, index); // File of interest
