Add some methods to Model