Implementing embedAllDocs.