Updated CtrlLang to use common Environment class