Made all global internal variables static