Changin the way constraints are added in the alignments