Allow IO to be executed in the hook