Add hooks.