I have a 2001 bmw z3 2.5L with 180k miles I’ve recently experienced some problems with my engine. I’ve experienced an oil leak and rough idle that I chalked up to either the vanos solenoids or something similar. But a new problem arose this morning, when I was put my car in reverse to back out of a gas station and my automatic transmission light came on and I experienced a loss of power and the engine was running rough. I pulled over and shut off my car, when I turned it back on the light went away but when I put it in reverse to back out. The same problem arose, so I took the opportunity to level out with the road and shut off the engine. I then waited and started it again and without putting it in reverse drove off with no problem. Any advice or suggestions?