Add some hooks.