Added global object shim for compatibility with test suite etc.
Upgraded analysis - Passes test suite