Nice use of `tmpdir`. Sounds like something I want to re-use in scc :)