Added ability to register a set of global variables, which are