Working on DocumentRepository