Pedigree checking, completing, sorting and recoding.