Added latency computation