Some work on MathUtils.