Added document retrieval