Update hook.