Duplicated from `getCharging`, not much we can do about this i guess if we want these funcitons to be nice clean standalone