Grid Stability through Flexibility