Added check_cache variable so user can specify if they want to use cached files or not.