Added MathFuncGenerator.