Make global work like local