Update heartbeat.sh