Removing sleep from run()