Switched floats to doubles.