Integrating Solar Batteries with Grid-Tied Systems