Class to add and call hooks.