Small optimations on statistic.