Added a hook method.