added heartbeat messages every 20 seconds