Replaced float by double.