Rework downloading: first build queue, then use it to download.