Changed longs to ints