Change how global scope is created