Changed floats to double