Moved some methods that relate to the model.