I have changed the following sensors. MAF, Forward O2 sensor. Cleaned the MAP sensor, throttle body had the intake manifold gasket and the PVC valve changed. I have been trying to troubleshoot the STFT and the LTFT. This morning I started the car and the fuel trims were both and zero. After the car warmed up for about 10 minutes the trims went wild. The STFT was positive 20 and the LTFT went to negative 25. After a few minutes they both went positive 20 to 25 and the rpm continued to rise. Any ideas of what this could be? I am running out of ideas. I was getting a misfire and a P0171 lean back 1 code. After cleaning the MAP sensor the misfire code has not come back. The PO171 is there now. I did notice that the scan tool is showing my timing going erratic from single digits to double digits.