Added a log file instead of looking for a filename to prevent redownload.