Added file check for download