Finished the pairwise segregated approach