Changed double to float