Index: trunk/ppImage/src/ppImageDetrendPattern.c
===================================================================
--- trunk/ppImage/src/ppImageDetrendPattern.c	(revision 37406)
+++ trunk/ppImage/src/ppImageDetrendPattern.c	(revision 41265)
@@ -38,4 +38,7 @@
     if (options->doPatternRow) {
 
+        //psLogMsg("ppImage", PS_LOG_INFO, "Log: entering pattern.row routine");
+        //psWarning ("Entering pattern.row routine");
+
         bool status;
 	pmHDU *hdu = pmHDUFromChip(chip);
@@ -45,8 +48,15 @@
 	}
 
+        const char *chipName = psMetadataLookupStr(NULL, chip->concepts, "CHIP.NAME");
+        psLogMsg("ppImage", PS_LOG_INFO, "Performing row pattern correction for %s\n", chipName);
+
 	pmFPAfile *input = psMetadataLookupPtr(&status, config->files, "PPIMAGE.INPUT");
 	pmFPAview *view = pmFPAviewAlloc(0); // View for local processing
 	*view = *inputView;
 	while ((cell = pmFPAviewNextCell(view, input->fpa, 1)) != NULL) {
+            //const char *chipName = psMetadataLookupStr(NULL, chip->concepts, "CHIP.NAME");
+            //const char *cellName = psMetadataLookupStr(NULL, cell->concepts, "CELL.NAME");
+            //psWarning ("Looping through %s, %s\n", chipName, cellName);
+
             if (!cell->process || !cell->file_exists) {
 		continue;
@@ -69,4 +79,5 @@
                 ESCAPE(false, "Unable to determine whether row pattern matching should be applied.");
             }
+            //psWarning ("Row: %d\n", doPattern);
             if (!doPattern) continue;
 
@@ -116,4 +127,7 @@
 	}
 
+        const char *chipName = psMetadataLookupStr(NULL, chip->concepts, "CHIP.NAME");
+        psLogMsg("ppImage", PS_LOG_INFO, "Performing pattern continuity correction for %s\n", chipName);
+
 	for (int i = 0; i < chip->cells->n; i++) {
             view->cell = i;
@@ -130,4 +144,5 @@
                 ESCAPE(false, "Unable to determine whether row pattern matching should be applied.");
             }
+
             if (doPattern) {
                 tweak->data.U8[i] = 0xFF;
@@ -161,4 +176,7 @@
 	  goto pattern_done;
 	}
+
+        const char *chipName = psMetadataLookupStr(NULL, chip->concepts, "CHIP.NAME");
+        psLogMsg("ppImage", PS_LOG_INFO, "Performing cell pattern correction for %s\n", chipName);
 
 	for (int i = 0; i < chip->cells->n; i++) {
