Added ability to create a document.