Implements statistic gathering