Added saneGlob() function