Updated charge code.