Implement global variable functionality