Update scripting with Mike Anderson's script