Added API for document types