Adding ```, :if => :global?``` to the global name check should limit the check sufficiently