Added functions to download files