Added option to disable overwriting of existing files.