Broke out the stats api. This is not my ideal implementation, but it's a start.