Battery detection logic. Also discovered interesting detail of live patching of subscriptables.