Index: trunk/ppSub/src/ppSubLoop.c
===================================================================
--- trunk/ppSub/src/ppSubLoop.c	(revision 27691)
+++ trunk/ppSub/src/ppSubLoop.c	(revision 28043)
@@ -144,5 +144,13 @@
         return false;
     }
-
+    // Do Mask Stats
+    {
+      pmFPAview *view = ppSubViewReadout(); // View to readout
+      if (!ppSubMaskStats(config, view,data->stats)) {
+	psError(psErrorCodeLast(), false, "Unable to generate mask statistics");
+	return(false);
+      }
+    }
+    
     // generate the binned image used to write the jpeg
     if (!ppSubReadoutJpeg(config)) {
