Update the model