Search global scope and make scope names static.