Add ids for environments.