Added more math functions.