Added heartbeat task