Moved first Thread.sleep to the beginning of block. Increased default
wait time to 200 ms.