Adds math functions.