adding latency measures