Make exclusion check a bit smarter.