Update the model and the user code