Update global to v4
Merge pull request #6 from Raynos/patch-1

Update global to v4