Index: trunk/ppImage/src/ppImageAddNoise.c
===================================================================
--- trunk/ppImage/src/ppImageAddNoise.c	(revision 31066)
+++ trunk/ppImage/src/ppImageAddNoise.c	(revision 31155)
@@ -90,4 +90,5 @@
   // Update the metadata about exposure time
   psMetadataAddF32(inReadout->parent->concepts, PS_LIST_TAIL, "CELL.EXPOSURE", PS_META_REPLACE, "the modified exposure time", expTimes3Pi[band]);
+  psMetadataAddF32(inReadout->parent->concepts, PS_LIST_TAIL, "FPA.EXPOSURE", PS_META_REPLACE, "the modified exposure time", expTimes3Pi[band]);
   psMetadataAddF32(fpa->concepts, PS_LIST_TAIL, "EXPTIME", PS_META_REPLACE, "the modified exposure time", expTimes3Pi[band]);
   ppImageRandomGaussianFree();
Index: trunk/ppImage/src/ppImageArguments.c
===================================================================
--- trunk/ppImage/src/ppImageArguments.c	(revision 31066)
+++ trunk/ppImage/src/ppImageArguments.c	(revision 31155)
@@ -55,4 +55,10 @@
     }
 
+    // generic arguments (version -- ignored in this case, dumpconfig)
+    PS_ARGUMENTS_GENERIC( psphot, config, argc, argv );
+
+    // thread arguments
+    PS_ARGUMENTS_THREADS( psphot, config, argc, argv )
+
     // save the following additional recipe values based on command-line options
     // these options override the PPIMAGE recipe values loaded from recipe files
@@ -84,16 +90,4 @@
         psArgumentRemove(argnum, &argc, argv);
         pmVisualSetVisual(true);
-    }
-
-    // Number of threads
-    if ((argnum = psArgumentGet(argc, argv, "-threads"))) {
-        psArgumentRemove(argnum, &argc, argv);
-        int nThreads = atoi(argv[argnum]);
-        psMetadataAddS32(config->arguments, PS_LIST_TAIL, "NTHREADS", 0, "number of warp threads", nThreads);
-        psArgumentRemove(argnum, &argc, argv);
-
-        // create the thread pool with number of desired threads, supplying our thread launcher function
-        // XXX need to determine the number of threads from the config data
-        psThreadPoolInit (nThreads);
     }
 
@@ -152,11 +146,4 @@
     }
 
-    if ((argnum = psArgumentGet(argc, argv, "-dumpconfig"))) {
-        psArgumentRemove(argnum, &argc, argv);
-        psMetadataAddStr(config->arguments, PS_LIST_TAIL, "DUMP_CONFIG", PS_META_REPLACE,
-                         "Filename for configuration dump", argv[argnum]);
-        psArgumentRemove(argnum, &argc, argv);
-    }
-
     if (argc != 2) usage ();
 
