Added support for global variables.