Changed type double to float.