Update the environments