Add some methods to Global.