ScenarioXml is now a local variable to avoid duplicating objects