Added ability to check if file has already been downloaded.