Implemented StatsClient, this resolves #6