Add math function.