Change GetScripts methods to avoid duplicate scripts.