Implement functionality to get the value of global variables.