add latency simulation to example