Changed move to rename to be able to overwrite existing files