Added cast to float for percentages.