Updated glmath.