Added getter and setter for model.