Todo Exception handling and average rtt