Added statistic calculations