Added an example. Fixed bug firing after hooks.