Switch to an array function to determine what to download.