Refactored a bit, hooks.go, const.go