Added last QC removal of documents before writing to datastore.