Added the possibility to hook globally