Example of update hook