It's for another PR, but **TODO**: make this MIT.