Added Heartbeat in Ruby