Added some cool math functions.