Added SimpleStatsResource and minor refactoring