Scoped the script