Cleaning up a debug if
Cleaning up the mask generation process; I started at some point and never finished