Remove console.log statement.
Use tmpfile instead of hardcoding filename.