The effect of adding batteries to a solar system