Rename mask() to read_mask()