Implement get and set methods.