Fix issue with passing url as an input to download/1
Refactor queued/parallel handling logic