Updated downloader function so it now works.