* Make interface for connection stats. Implement suggestion from @paulwe to clean that up a bit. * fix test