Added some additional math functions.