A Cat 316 with a C4.4 engine and Tier4F emissions system was in emergency mode with limited engine power. The active faults were 3138 and 5856. We performed the programming through the original diagnostic port using dealer equipment, which is safe for both us and the client. We made changes in the program, resulting in the engine operating without the AdBlue and EGR systems from now on.