Index: trunk/ppImage/src/ppImageLoop.c
===================================================================
--- trunk/ppImage/src/ppImageLoop.c	(revision 16249)
+++ trunk/ppImage/src/ppImageLoop.c	(revision 18556)
@@ -62,4 +62,9 @@
                     continue;
                 }
+
+		// XXX set the options->*Mask values here (after the mask images have been loaded
+		// and before any of the value are used)
+		if (!ppImageSetMaskBits (config, options)) 
+		    ESCAPE ("Unable to set bit masks");
 
                 // perform the detrend analysis
