Making the Grid Smarter: New Rules for Solar and Wind Power