Add/edit environment.