Changed battery to display a dynamically generated bar