Added latency checking