Changes from hex to int counting