Add statistics generation