Creating global visitor.
Moved globals in to visitor.