Added the required math functions.