Add global_vars to store globally referenced modules.