Added StatHatClassic and various refactoring changes.