Removed duplicate code in Mask