Added a WaitGroup for downloading sets, removing the race condition.