Starting complete revision of document stats (work in progress)