Used basename for download function