Make it possible to define a hook.