Reduced the collection.py module to purely managing threads.