Added code to download files.