When you spend thousands of dollars on a car, you want it to last. Consumer Reports has released its latest reliability report, which shows the brands and models that are considered the most reliable and the ones you might want to steer clear of.

Consumer Reports surveys its members every year about any serious problems they’ve experienced with their vehicles in the past 12 months.

This year’s annual Auto Reliability Survey, the largest of its kind, gathered data on more than half a million vehicles.

“Just because a car is new doesn’t mean it will be problem-free,” said Mike Quincy with Consumer Reports. “According to this survey, in-car electronics, like infotainment systems, power equipment, and transmissions continue to give owners headaches.”

Lexus, Toyota, and Mazda were the top brands, with Mazda making the biggest jump, moving up nine spots from the previous year.

Brands at the bottom of the list were Tesla, Cadillac, and Volvo.

“The Tesla Model S electric sedan actually lost its recommended status because Consumer Reports members reported problems with the car’s air suspension and body hardware, such as the car’s door handles,” explained Quincy.

Turbo engines are becoming more common, but some car owners in the survey had trouble with their car’s turbocharger and engine computer. A few needed complete engine replacements.

“The truth is, when automakers introduce new technology it can take several model years to get it working correctly,” Quincy said.

The cars that came out on top as the most reliable were the Lexus GX, Toyota Prius C, and Mazda MX-5 Miata.

The least reliable were the Ram 3500, Tesla Model X, and Cadillac ATS.