Support for setting environments