Renamed some math functions to keep consistency.