Added math library and changed variable names