Added the ability to generate ties.