Changed args of mathfunction from string to function type