Energy storage is an inverter or a transformer