Add support for multiple global environments.