Index: /branches/eam_branches/ipp-20230313/ppStack/src/ppStackReadout.c
===================================================================
--- /branches/eam_branches/ipp-20230313/ppStack/src/ppStackReadout.c	(revision 42565)
+++ /branches/eam_branches/ipp-20230313/ppStack/src/ppStackReadout.c	(revision 42566)
@@ -83,5 +83,5 @@
     thread->status = status ? PPSTACK_THREAD_SUCCESS : PPSTACK_THREAD_FAILURE;
 
-    // fprintf (stderr, "finished thread %d, status %d : scan range %d - %d\n", thread->entry, thread->status, thread->firstScan, thread->lastScan);
+    fprintf (stderr, "finished thread %d, status %d : scan range %d - %d\n", thread->entry, thread->status, thread->firstScan, thread->lastScan);
 
     psAssert(status, "Stacking failed.");
@@ -383,4 +383,5 @@
     bool mdok;                          // Status of MD lookup
     psF64 rejectFraction = psMetadataLookupF32(&mdok, recipe, "COMBINE.REJECT.FRACTION"); // fraction of outliers to reject
+    int nminpix = psMetadataLookupS32(&mdok, recipe, "NMINPIX"); // Minimum input per pixel to combine with
 
     char defaultBlankStr[16] = "BLANK";
@@ -422,5 +423,5 @@
     }
 
-    if (!pmStackCombineByPercentile(outRO, expRO, stackData, rejectFraction, maskBad, maskSuspect, maskBlank)) {
+      if (!pmStackCombineByPercentile(outRO, expRO, stackData, rejectFraction, nminpix, maskBad, maskSuspect, maskBlank)) {
         psError(PS_ERR_UNKNOWN, false, "Unable to combine input readouts with rejection.");
         psFree(stackData);
