Cleaning up hook