Added ability to specify regex for unprocessed records.