Now to charge the battery, we connect a source of electricity. It could be something like a wind farm. And then we reverse the current. And this forces magnesium to de-alloy and return to the upper electrode, restoring the initial constitution of the battery. And the current passing between the electrodes generates enough heat to keep it at temperature.