Added use and moved hooks register from constructor to registerHooks()