Start statistic function