Updated heartbeat to log to console.