Added align_loci function.