Use fabs instead of abs