Added a sleep to the while loop waiting for reception of ReadyAck. Used Boost thread sleep_for.