First working version of downloader