So I was driving around today and got on the gas a little, got the engine up to about 5k then the car started missing out bad and the check engine light came on. It would only miss out when it was in gear and then the all wheel drive light (?) kept coming on every time it would hit the gas. The light stayed on for a while and not till after I parked the car for a third time did it finally shut off. The car ran fine until it hit 5k. Does anyone know what could have caused this?