Add statistics function.