Tesla says its upcoming factories and supply-chain challenges will put pressure on its margins, despite achieving record deliveries.

The car manufacturer posted record revenue for the fifth consecutive quarter in the three months from July to September, fueled by a production build-up at its Chinese factory.

But the company, led by billionaire Elon Musk, admits it faces challenges growing earnings in coming quarters due to supply chain disruptions and the time required to ramp up production at new factories in Berlin and Texas.

“There’s quite an execution journey ahead of us,” Tesla’s chief financial officer Zachary Kirkhorn said, referring to the new factories.

Price fluctuations of raw materials such as nickel and aluminum had created an “uncertain environment with respect to cost structure”, he added.

However, he insisted Tesla was “quite a bit ahead” of its plan to increase deliveries by 50% this year.

“Q4 production will depend heavily on availability of parts, but we are driving for continued growth,” he said.

The company said its third-quarter revenue rose to $13.76 billion from $8.77 billion a year earlier, slightly beating analyst expectations according to IBES data from Refinitiv.

Tesla’s automotive gross margin, excluding environmental credits, rose to 28.8%, from 25.8% the previous quarter.

Tesla’s overall average price fell as it sold more lower-priced Model 3 and Model Y cars, but it raised prices in the US.

The company posted robust sales in China, where its low-cost Shanghai factory has surpassed the Tesla factory in Fremont, California, in terms of production.

Tesla also said it intended to use lithium iron phosphate (LFP) battery chemistry, which is cheaper than traditional batteries but offers lower range, in entry-level models sold outside China. Analysts said this would help keep costs down and address shortages.

It expected the first vehicles equipped with its own 4680, bigger battery cells to be delivered early next year, although it did not say which model would be fitted with them.

Musk said in September last year that using its own cells would allow Tesla to offer a $25,000 car within three years.