Yeah, it was driving me crazy, thinking it was a vacuum leak, or a cam sensor or acuator, Even replaced the Crack sensor as any one of those could cause the problems and codes I had.
Here is a great video showing exactly what I did. It's not an XLR in the video, but it's the same set up.
YouTube
And here is the part that took a crap.
Duralast Engine Variable Timing Solenoid TS1032 - Read Reviews on Duralast #TS1032
Turns out this Solenoid is out of stock everywhere! Even Cadillac and GM couldn't order it for me. Called Dorman "The manufacture of the par" themselves and they said they would be available Jan 26th. So I wen't to a junk yard and pulled it from a Random Caddi that had the same engine.. and I'll order a new one when they are back in stock. I got the Solenoid for 1$ at the yard lol. So if the XLR ever starts running rough at idle and you get the codes p0300 and p0018/14/16... check this little guy first.