Efficiency improvement.

Replaced a few strings with floats.