Switched all usages of sets to ordered sets.