Switched to the more stable and accurate online variance calculation.