Added feature to stop overwritting files that are given the same name