Couple of quick questions,
Are there any other codes stored or just the P1345 ?
Has there been any recent repair work done of the Engine?
Let me know
This code can be set simply because the timing chain has become loose over the miles. At 160,000 That is where I would focus.
These things are real bad about Crankshaft Sensors too. See the Chart I have loaded at the bottom for you. Tells exactly how to check.
Check the Chain. and Crank Sensor First!
You can remove the distributor cap, and while moving the crankshaft by hand, you can take a look at how far the crankshaft is able to move before the distributor begins to move. That is how I personally check this engine. Should only move a few degrees before the distributor rotor moves.
Here are a list of other Diagnostic Aids that you can look at.
DIAGNOSTIC AIDS The check following items:
An intermittent may be caused by any of the following conditions:
Additionally there are some Tests you can perform with a scan tool to check Camshaft Retard Offset. See the Chart Below.
Hope this will give you the information you need.
Thanks and have a great day