Update to new StackEnvironment constructor