Changed glyph code to use the black box