Some debugging in statistics function.