Change enviroment setting code