FIX: Use fabs instead of abs for double values