Add global variable management in Typing, still not finished.