Added debug statistic to AVR