First attempt at stats api