Index: trunk/psModules/src/detrend/pmMaskBadPixels.c
===================================================================
--- trunk/psModules/src/detrend/pmMaskBadPixels.c	(revision 12696)
+++ trunk/psModules/src/detrend/pmMaskBadPixels.c	(revision 13591)
@@ -66,15 +66,4 @@
             }
         }
-    } else {
-        // set raised pixels in exMask which are selected by maskVal
-        for (int j = 0; j < inMask->numRows; j++) {
-            int xJ = j - offRow;
-            for (int i = 0; i < inMask->numCols; i++) {
-                int xI = i - offCol;
-                if (exVal[xJ][xI] == 0) {
-                    inVal[j][i] |= PM_MASK_BAD;
-                }
-            }
-        }
     }
 
@@ -82,5 +71,5 @@
     psString timeString = psTimeToISO(time); // String with time
     psFree(time);
-    psStringPrepend(&timeString, "Static mask applied at ");
+    psStringPrepend(&timeString, "Static mask (selecting %x) applied at ", maskVal);
     psMetadataAddStr(hdu->header, PS_LIST_TAIL, "HISTORY", PS_META_DUPLICATE_OK,
                      timeString, "");
