Added debug to Hook