Removed redundant NewHook function.