Add "download()" function