Added the ability to resolve ties in preference lists