Changed ints to doubles