Grid Stability and Flexibility