Moving hooks into config arg