Added FloodMask functions