Add support for local hooks.