wip : setstats

From offsite 2014.
This still needs some work, probably doesn't compile.

Signed-off-by: Jake Smith <jsmith@jake-xps.(none)>