Factored out heart-beats into a separate listener.