I've had the code for about 4 months now, and every time it seems to go away, it comes right back.

Things i've tried:
-Replaced EGR valve
-Fixed all exhaust leaks
-Fixed all vacuum leaks
-Changed all leaky gaskets
-Tried another pcm
-Got new valve flex hoses (one had a crack in it, thought this would finally do it) The voltage numbers on the scanner are good too.

But then after driving for about 20 minutes, it came back on but then shut off 20 minutes later. I must be getting close right? Does anyone know what i'm missing?