Preventing the next blackout