Sem: Rewrote assignGlob to simpler design