Updated battery monitor script to loop itself.