Tesla announced on Sunday morning that the company shipped 50,580 cars in 2015, hitting the low- to mid-range of its target for the year. The electric car company was hoping to ship between 50,000 and 52,000 cars this year.

Tesla says it shipped 17,192 Model S cars in the fourth quarter of the year, which was 75% more than the company shipped in the same period in 2014, and 48% more than the company shipped in the third quarter of 2015.

Tesla says it made 507 Model X cars in the fourth quarter, and shipped 208. The company says it now expects to be able to produce 238 Model X cars per week.

That Tesla hit in the range of its annual car shipment target is important. It has been trying to ramp up production of its Model S cars dramatically while also producing the Model X for the first time.

It’s been a difficult task. Initially, Tesla said it would ship 55,000 cars this year. But in August, because of the difficulty of making both cars at the same time, it revised that prediction slightly to between 50,000 and 55,000. Then in November, the company adjusted its guidance again by saying that the number would be 50,000 to 52,000.

WATCH: Will Tesla’s Model X be a hit?

Tesla’s shipment targets aren’t as bullish as what one analyst, Global Equities Research managing director Trip Chowdhry, predicted last week. Chowdhry said that he thought Tesla had delivered 18,300 cars in the quarter, including 300 Model X cars.

Tesla only started shipping the very first Model X cars at the end of September, but in recent weeks has started delivering the Signature Series of the Model X, which is a high-end model for early reservation holders.