Adds the statistic task