Modified huboCan to encode tick values in imitation of Dan's method.