Added a hook