Ported the SchematicToChargeProblem.