Use scalar instead of double.