Changed weights from ints to doubles