Changed rtt calculation algorithm.