Update for nested environments.