Added option to exclude specific classes or associations.