Added support for documents and archives