Cleaned up to:
  work properly for no globals
  no need to repeat las global