Index: /trunk/psphot/src/psphotSetMaskBits.c
===================================================================
--- /trunk/psphot/src/psphotSetMaskBits.c	(revision 21253)
+++ /trunk/psphot/src/psphotSetMaskBits.c	(revision 21254)
@@ -18,4 +18,10 @@
     }
 
+    bool status = psphotSetMaskRecipe (config, maskValue, markValue);
+    return status;
+}
+
+bool psphotSetMaskRecipe (pmConfig *config, psImageMaskType maskValue, psImageMaskType markValue) {
+
     // select the current recipe
     psMetadata *recipe = psMetadataLookupPtr (NULL, config->recipes, PSPHOT_RECIPE);
