Hello everyone, I have a 2000 Subaru Legacy Outback with a EJ251 engine that is giving me some trouble. I started getting a code 22 each once in a while with some noticiable knocks with the engine under load, it would occur on a slight hill with the engine between 2000 and 3000 rpms, after reving up the engine the code would clear after a few seconds. It would also show sometimes with the engine cold after starting the car for a few seconds, it would clear not much after. Since the head gaskets were starting to leak i decided to change them and clean the pistons and the combustion chamber. After putting everything back together I have found I still have the code, no more hesitation when driving or anything else. I have changed the knock sensor, map sensor, put new injectors, new pressure regulator, new oxygen sensor and I still get the code. With the new knock sensor it stays longer with the code while the engine is cold and comes on more often. ¿Any ideas on what could I do? I have also cleaned all the connections and checked all the service manual recommends. ¿Could it be that it is detecting the beginning of a rod knock? The engine sounds fine to me and it drives fine too, the only thing it shows is a very bad gas mileage.