Intermittent power generation from renewables and other sources, along with variable loads cause deviations from nominal frequency in the grid. Energy storage systems will restore the balance between supply and demand. The energy storage system is charged or discharged in response to an increase or decrease of grid frequency and keeps it within pre-set limits.