Changed the functions math.