Statistic implemenatation