Added the ability to add documents.