Sets hook as class variable