Self-matching constraint added.