Thermal periodic contact of exhaust valves in spark ignition internal combustion engines for improved control performance