Making mask writeable and readable to/from file for easy editing.