Changed getFloat to getDouble.