Added RTT estimation and variable sliding window.