Improved our globalInstance() method.