Almost done. It's still 10-based and has no sanity checks