Added option to overwrite file at output location