Still trying to fix stats counting function. Performance? Who cares?