Corrections to charger algorithm