Add update hook.