Added latency script