Added update hook.