Making the script work