Changing floats to doubles so that everything doesn't break