Changed to unsigned ints.