Using a temporary directory.