Moved heartbeat onto the stack rather than be part of the struct