Added a couple of methods to be used for distinct classes and exclude
set.