Added in some code to download files