Added latency monitor
Fixed a bug in hs_events_handler