Converted floats to flex, more tuning.