Added the code to download files