Run hooks

@anthonybishopric @mpuncel 
I think it's advisable to provide these values as environment variables, not as ordered arguments.