Added a few hooks.