Changed double ratio values to float.