Indented and added wait at end