Start porting the code to use `mtl`

I think this was missing.