An operating method for container quay cranes used to load and unload container ships aided by a PC with a monitor in a crane driver’s cabin. In one example, the termination of the lean air-fuel mixture is based on an oxygen storage capacity and temperature of the NOx trap. The valve can be used, for example, as a gas exchange valve in a reciprocating engine.