Battery Replacement and Optimization