Now communicate via temporary file instead of stdin