Removed unused math functions.