add email latency script