This cast to float is likely not needed.