Basic document processing.