Three ways to manage battery packs