Add comment to heartbeat function