Output file is now saved on the fly