Minor update.
- Add latency detector
- Fix iterator bug