Removed some redundancy from the document index