Changed ints to longs