Classes added to permit input from pairtree.