There is no code below this to change batSettings. So why would you want to do this at every cycle?