Update to new 0.7.0 Environment API.