Index: /branches/eam_branches/ipp-20211108/ppStack/src/ppStackReadout.c
===================================================================
--- /branches/eam_branches/ipp-20211108/ppStack/src/ppStackReadout.c	(revision 41930)
+++ /branches/eam_branches/ipp-20211108/ppStack/src/ppStackReadout.c	(revision 41931)
@@ -382,5 +382,5 @@
 
     bool mdok;                          // Status of MD lookup
-    psF64 minRange = psMetadataLookupF32(&mdok, recipe, "COMBINE.MIN.RANGE"); // Combination threshold
+    psF64 rejectFraction = psMetadataLookupF32(&mdok, recipe, "COMBINE.REJECT.FRACTION"); // fraction of outliers to reject
 
     char defaultBlankStr[16] = "BLANK";
@@ -404,4 +404,6 @@
 
     for (int i = 0; i < num; i++) {
+	stackData->data[i] = NULL;
+
         pmReadout *ro = readouts->data[i];
         if (!ro || mask->data.PS_TYPE_VECTOR_MASK_DATA[i]) {
@@ -420,5 +422,5 @@
     }
 
-    if (!pmStackCombineByPercentile(outRO, expRO, stackData, minRange, maskBad, maskSuspect, maskBlank)) {
+    if (!pmStackCombineByPercentile(outRO, expRO, stackData, rejectFraction, maskBad, maskSuspect, maskBlank)) {
         psError(PS_ERR_UNKNOWN, false, "Unable to combine input readouts with rejection.");
         psFree(stackData);
