Start of statistics functionality for Mimir #147