Trying to solve the problem about charging to 99% (from Skywalker)