Adding Local Hooks

Adding support for local hooks.