Adding sequence records, and cleaning up reference records.