Removed a lot of static functions and passed the collection class to the SearchConfig class in preparation for the logging.