turned the battery tresholds into dynamically reconfigurable parameters