Added file overwrite check