added latency 20ms to avoid racing conditions