A method of improving efficiency of an internal combustion engine wherein the engine comprises a crankshaft, one or more cylinders including a cylinder head, a piston, a combustion chamber, one or more intake valves operated in accordance with late and/or early Miller-type valve timing, one or more exhaust valves, an intake system configured for feeding intake air to the engine, an exhaust system configured for conveying exhaust gas away from the engine, an exhaust gas recirculation system including a gas feeding device connected to an EGR drive unit and being configured to feed exhaust gas branched off from the exhaust system through an EGR conduit and into the intake system and a pressure charging system connected to the intake system, wherein the gas feeding device is a displacement pump and wherein the displacement pump is arranged in the EGR conduit between the exhaust system and the intake system, wherein the method includes the steps of: - Operating (S20a) the internal combustion engine under such conditions that the pressure in the intake system exceeds or is substantially similar to the pressure in the exhaust system, and - Operating (S21a) the gas feeding device to pressurise and thereby supply branched off exhaust gas to the intake system, or - Operating (S20b) the internal combustion engine under such conditions that the pressure in the exhaust system is higher than the pressure in the intake system, - Configuring (S21b) the EGR system and/or the EGR drive unit to be driven by the gas feeding device so as to generate a power output, - Operating (S22b) the engine so as to drive the gas feeding device by means of exhaust gas flowing from the exhaust system to the intake system and thereby operate the gas feeding device in an energy recovery mode where the EGR drive unit generates a power output, wherein the method includes the step of: - in operating conditions wherein the pressure in the exhaust system is lower than the pressure in the intake system, or in operating conditions wherein a turbine of the pressure charging system operates below desired speed, operating the EGR system in an at least partially reversed mode such that the gas feeding device supplies pressure to the pressure charging system. - Operating (S20a) the internal combustion engine under such conditions that the pressure in the intake system exceeds or is substantially similar to the pressure in the exhaust system, and - Operating (S21a) the gas feeding device to pressurise and thereby supply branched off exhaust gas to the intake system, or - Operating (S20b) the internal combustion engine under such conditions that the pressure in the exhaust system is higher than the pressure in the intake system, - Configuring (S21b) the EGR system and/or the EGR drive unit to be driven by the gas feeding device so as to generate a power output, - Operating (S22b) the engine so as to drive the gas feeding device by means of exhaust gas flowing from the exhaust system to the intake system and thereby operate the gas feeding device in an energy recovery mode where the EGR drive unit generates a power output, - in operating conditions wherein the pressure in the exhaust system is lower than the pressure in the intake system, or in operating conditions wherein a turbine of the pressure charging system operates below desired speed, operating the EGR system in an at least partially reversed mode such that the gas feeding device supplies pressure to the pressure charging system.