Update the model functions