Adding total_documents.