Cleaned up file downloader