Added heartbeat timer