Add math functions.