Move Stats inner class to appropriate line of code