Give proper global scope to variables