Changed hexes to take ints instead of chars.