Add pre/post start hooks