SMS: Harnessing variable renewables