Index: /trunk/ppImage/src/ppImageLoop.c
===================================================================
--- /trunk/ppImage/src/ppImageLoop.c	(revision 9870)
+++ /trunk/ppImage/src/ppImageLoop.c	(revision 9871)
@@ -101,19 +101,20 @@
 
             // Apply the fringe correction
-            psTrace("ppImage", 3, "Applying fringe correction...\n");
-            bool mdok;                          // Status of MD lookup
-            pmFPAfile *fringeFile = psMetadataLookupPtr(&mdok, config->files, "PPIMAGE.FRINGE");
-            pmCell *fringeCell = pmFPAviewThisCell(view, fringeFile->fpa);
-            psImage *fringe = ppImageDetrendFringeGenerate(cell, fringeCell, fringeSoln);
-            while ((readout = pmFPAviewNextReadout (view, input->fpa, 1)) != NULL) {
-                if (!readout->data_exists) { continue; }
+            if (options->doFringe) {
+                psTrace("ppImage", 3, "Applying fringe correction...\n");
+                bool mdok;                          // Status of MD lookup
+                pmFPAfile *fringeFile = psMetadataLookupPtr(&mdok, config->files, "PPIMAGE.FRINGE");
+                pmCell *fringeCell = pmFPAviewThisCell(view, fringeFile->fpa);
+                psImage *fringe = ppImageDetrendFringeGenerate(cell, fringeCell, fringeSoln);
+                while ((readout = pmFPAviewNextReadout (view, input->fpa, 1)) != NULL) {
+                    if (!readout->data_exists) { continue; }
 
-                // XXX: Make generic, so subregions may be subtracted as well
-                psBinaryOp(readout->image, readout->image, "-", fringe);
+                    // XXX: Make generic, so subregions may be subtracted as well
+                    psBinaryOp(readout->image, readout->image, "-", fringe);
 
-                if (!pmFPAfileIOChecks (config, view, PM_FPA_AFTER)) return false;
+                    if (!pmFPAfileIOChecks (config, view, PM_FPA_AFTER)) return false;
+                }
+                psFree(fringe);
             }
-            psFree(fringe);
-
 
             // Perform statistics on the detrended cell
