Added global variable declarations