Use model methods to do stuff like this.