Right now there are magic numbers and things all over the place, and it makes it really hard to read the code (not to mention hard to avoid bugs).
We should have Rust statically check things so that we can't mix up the units and so conversions are centralized.