My 99 Impreza Outback (no mods) starts and idles just fine. On acceleration or under a load it sputters and hesitates until I back off the pedal. It then will smooth out and run as normal until acceleration is again needed.

I went to AutoZone and pulled the codes P0304 and P0335. The misfire code was expected as it misfired on my way to AutoZone. I bought a new crankshaft position sensor and installed it after visually inspecting all connections and wires. The problem did not change.

I tested the sensor with an Ohm meter and it seems to be fine. The connection to the sensor with the key on reads about 7 volts.

What else can cause the computer to thrown out this code? Any help?