Reformatted
Refactoring for sharing preserve_env_list variable