Added a checkbox to automatically replace the output files