Creating seperate register_hooks and unregister_hooks functions