Statistic and Log function