Read in parameters Create input and output filenames based on parameters chosen. Loop through prefixes for each directory in dirfile: if (withmask or withcheese) then Apply a mask or cheese mask if selected to eliminate point sources. endif Apply PN OOT if necessary (but not for cheese maps) Accumulate a total outImage Calculate pixel bins to place incoming counts based on WCS coords. End Loops Write output mosaicked image to FITS and write new WCS keywords.