Add support for local and global environment variable setting.