Abstract: Disclosed is a current diverting device adapted to be electrically connected with a battery pack arranged to power a machine including at least a first operating unit. The battery pack includes a positive and a negative pole and a plurality of battery cells interconnected between the poles such that at least two battery cells are connected in series for providing a higher battery pack voltage level, and is further arranged to feed electricity to the at least one first operating unit via the battery poles. Also disclosed is a method and a computer program product.