Revert "Removed global"

This reverts commit 028270caf7f4128123f677b6d035b17e9c2b7742.