Implemented Hook.register