Changed double to float.