Added local version of the script that solves the curl problems