More efficient and flexible stats tracking