Changed type from double to float.