Add method for computer to get and set mask