Index: trunk/ppStack/src/ppStackArguments.c
===================================================================
--- trunk/ppStack/src/ppStackArguments.c	(revision 19565)
+++ trunk/ppStack/src/ppStackArguments.c	(revision 19599)
@@ -81,19 +81,4 @@
     psMaskType value = pmConfigMaskGet(name, config); \
     psMetadataAddU8(recipe, PS_LIST_TAIL, RECIPENAME, PS_META_REPLACE, NULL, value); \
-}
-
-// Get a statistic name from the command-line or recipe, and add the enum to the arguments
-#define VALUE_ARG_RECIPE_STAT(ARGNAME, RECIPENAME) { \
-    const char *stat = psMetadataLookupStr(NULL, config->arguments, ARGNAME); \
-    if (!stat) { \
-        stat = psMetadataLookupStr(NULL, recipe, RECIPENAME); \
-        if (!stat) { \
-            psError(PS_ERR_BAD_PARAMETER_VALUE, false, "Unable to find %s in recipe %s", \
-                    RECIPENAME, PPSTACK_RECIPE); \
-            goto ERROR; \
-        } \
-    } \
-    psMetadataAddS32(recipe, PS_LIST_TAIL, RECIPENAME, PS_META_REPLACE, \
-                     NULL, psStatsOptionFromString(stat)); \
 }
 
@@ -281,6 +266,6 @@
     }
     VALUE_ARG_RECIPE_INT("-renorm-width", "RENORM.WIDTH", S32, 0);
-    VALUE_ARG_RECIPE_STAT("-renorm-mean", "RENORM.MEAN");
-    VALUE_ARG_RECIPE_STAT("-renorm-stdev", "RENORM.STDEV");
+    valueArgRecipeStr(arguments, recipe, "-renorm-mean", "RENORM.MEAN", recipe);
+    valueArgRecipeStr(arguments, recipe, "-renorm-stdev", "RENORM.STDEV", recipe);
 
     valueArgRecipeStr(arguments, recipe, "-temp-image",  "TEMP.IMAGE",  recipe);
Index: trunk/ppStack/src/ppStackMatch.c
===================================================================
--- trunk/ppStack/src/ppStackMatch.c	(revision 19565)
+++ trunk/ppStack/src/ppStackMatch.c	(revision 19599)
@@ -72,7 +72,4 @@
     bool mdok;                          // Status of MD lookup
     bool renorm = psMetadataLookupBool(&mdok, recipe, "RENORM"); // Renormalise variances?
-    psStatsOptions renormMean = psMetadataLookupS32(&mdok, recipe, "RENORM.MEAN"); // Statistic for mean
-    psStatsOptions renormStdev = psMetadataLookupS32(&mdok, recipe, "RENORM.STDEV"); // Statistic for stdev
-    int renormWidth = psMetadataLookupS32(&mdok, recipe, "RENORM.WIDTH"); // Width for renormalisation box
     float penalty = psMetadataLookupF32(NULL, ppsub, "PENALTY"); // Penalty for wideness
     int threads = psMetadataLookupS32(NULL, config->arguments, "-threads"); // Number of threads
@@ -364,4 +361,11 @@
     // Renormalise the variances if desired
     if (renorm) {
+        // Statistics for renormalisation
+        psStatsOptions renormMean = psStatsOptionFromString(psMetadataLookupStr(&mdok, recipe,
+                                                                                "RENORM.MEAN"));
+        psStatsOptions renormStdev = psStatsOptionFromString(psMetadataLookupS32(&mdok, recipe,
+                                                                                 "RENORM.STDEV"));
+        int renormWidth = psMetadataLookupS32(&mdok, recipe, "RENORM.WIDTH"); // Width for renormalisation box
+
         psLogMsg("ppStack", PS_LOG_INFO, "Renormalising variance map.");
         if (!pmReadoutWeightRenorm(readout, maskBad, renormMean, renormStdev, renormWidth, rng)) {
