Tweaked the BG stats to only update when needed and to use a little less memory.