Add running_as_hook()