Refactor of Global.gd