Changed comparisons between clauses. (This needs some more work.)