Changed the way GlobalData works