Switched x2 stats over to Python built-in functions