Updated config, added check for existing files