Added overwrite mode and dialog if file exists.