controlling the gas discharge to control a cell condition