Statistic generation added.