Full rewrite of the downloader module