Changed the way excludeSets are calculated.