Change return value to float