Added global varaibles