Wait for events to allow run to work