doWait now works.