Unclear on the use of signed vs. unsigned in this module. There's some uint stuff but also some int stuff that is not supposed to be signed.