Split out the logic to download many files