Updated threaded_sweeper script