Remove wait in createNewApplication.