Fix the timeout issue, added the RTT calculated time, fixed print statements, and fixed the for loop