I have pulled the motor on my 2004 crv to replace the head gasket. Milled the head .005 and rebuilt by the book. I put it back together and I am getting a CEL for a crankshaft position sensor and intake runner control valve. I have replaced the parts with OEM parts, still the same code. I have inspected and ohmed the wires to insure no damage. I also have did a voltage test and they are putting out signal. The engine will not rev above 3,000 rpm. I have tried to clear the codes, the codes clear and as soon as I turn the engine they pop right back. When installing the gear on the crankshaft for your cps does it matter which way it goes on? (it is keyed so it can only go in one position but maybe it is flipped the wrong way) A guy I talked with that was pretty knowledgeable suggested it may be a cam position sensor, however I have invested quite a bit of money in parts already that have not fixed the issue, I would rather not unless someone else has seen this before. He also suggested the timing may be off, but I was very careful when putting the motor back together and made sure it was TDC with the cam marks mating perfectly(new timing chain too). If anyone has any suggestions please let me know.