Fix to the search exclusions script.
Cleaned up eventing a bit.