Working with tempfile.