Update control environment code