Stats

move stats interface to pkg stats