Made the heartbeat example a little bit better.