Finishing battery script