Fix #12: Move statistics so it's centralized.