Evaluate global variables in main