Index: trunk/ppStack/src/ppStackLoop.c
===================================================================
--- trunk/ppStack/src/ppStackLoop.c	(revision 13464)
+++ trunk/ppStack/src/ppStackLoop.c	(revision 13489)
@@ -30,7 +30,7 @@
     }
 
-    pmFPAfile *output = psMetadataLookupPtr(NULL, config->files, "PPSTACK.OUTPUT"); // Output file
-    if (!output) {
-        psError(PS_ERR_UNEXPECTED_NULL, false, "Can't find output data!\n");
+    pmFPAfile *input = psMetadataLookupPtr(NULL, config->files, "PPSTACK.INPUT"); // Token input file
+    if (!input) {
+        psError(PS_ERR_UNEXPECTED_NULL, false, "Can't find input data!\n");
         return false;
     }
@@ -45,5 +45,5 @@
 
     pmChip *chip;                       // Chip of interest
-    while ((chip = pmFPAviewNextChip(view, output->fpa, 1)) != NULL) {
+    while ((chip = pmFPAviewNextChip(view, input->fpa, 1)) != NULL) {
         if (!pmFPAfileIOChecks(config, view, PM_FPA_BEFORE)) {
             return false;
@@ -51,5 +51,5 @@
 
         pmCell *cell;                // Cell of interest
-        while ((cell = pmFPAviewNextCell(view, output->fpa, 1)) != NULL) {
+        while ((cell = pmFPAviewNextCell(view, input->fpa, 1)) != NULL) {
             if (!pmFPAfileIOChecks(config, view, PM_FPA_BEFORE)) {
                 return false;
@@ -67,5 +67,5 @@
 
             pmReadout *readout;         // Readout of interest
-            while ((readout = pmFPAviewNextReadout(view, output->fpa, 1))) {
+            while ((readout = pmFPAviewNextReadout(view, input->fpa, 1))) {
                 if (!pmFPAfileIOChecks(config, view, PM_FPA_BEFORE)) {
                     return false;
@@ -85,5 +85,5 @@
             // Perform statistics on the cell
             if (stats) {
-                ppStats(stats, output->fpa, view, config);
+                ppStats(stats, input->fpa, view, config);
             }
 
