Added waitWhileBusy