Code to help detect and download updated files