Small change to the way the environment is copied.