Update the model inside the callback.