Extend statistic logic