Index: branches/pap/ppSub/src/ppSubReadoutStats.c
===================================================================
--- branches/pap/ppSub/src/ppSubReadoutStats.c	(revision 23711)
+++ branches/pap/ppSub/src/ppSubReadoutStats.c	(revision 23719)
@@ -1,8 +1,17 @@
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
 
-bool ppSubReadoutStats(pmConfig *config, ppSubData *data, const pmFPAview *view)
+#include <pslib.h>
+#include <psmodules.h>
+#include <ppStats.h>
+
+#include "ppSub.h"
+
+
+bool ppSubReadoutStats(pmConfig *config, ppSubData *data)
 {
     psAssert(config, "Require configuration");
     psAssert(data, "Require data");
-    psAssert(view, "Require view");
 
     if (!data->statsFile) {
@@ -14,8 +23,12 @@
     if (!output) {
         psError(PS_ERR_UNEXPECTED_NULL, true, "Unable to find file PPSUB.OUTPUT.\n");
-        goto ERROR;
+        return false;
     }
     psImageMaskType maskValue = pmConfigMaskGet("MASK.VALUE", config);
+    pmFPAview *view = ppSubViewReadout(); // View to readout
     ppStatsFPA(data->stats, output->fpa, view, maskValue, config);
+
+    pmReadout *outRO = pmFPAviewThisReadout(view, output->fpa); // Readout of interest
+    psFree(view);
 
     // Statistics on the matching
