Replaced timeouts with CountDownLatch:es.