Again, let's use unified names, I think it's fine to use `tmp_dir`.