Added missing math functions.