More work on document stats