Temporarily replaced charge code with pseudo code