Moved the waitTillReady to before the doOperation call in order to have the threads synchronized.