added latency timer