Doc processing.