Added missing global variable declarations