Update: Set environments w/ globals (fixes #1577)