A Tesla logo superimposed over a mess of numbers and figures.

On Wednesday, Tesla published its financial results for the third quarter of 2020. The company says it ended Q3 2020 with a GAAP profit of $331 million, the fifth profitable quarter in a row for the US automaker. Despite the pandemic, it’s a strong improvement on Q3 2019.

Tesla ends Q3 2020 with a positive free cash flow of $1.4 billion and $14.5 billion in cash and cash equivalents. Tesla says in its presentation to investors that Q3 was marked by substantial growth in vehicle deliveries, which counteracted a decrease in the average selling price as the company sells fewer and fewer Models S and X and sells more and more Models 3 and Y. Regulatory credits accounted for $397 million of its revenues, and the company had to pay out $280 million in stock-based compensation for CEO Elon Musk after the company reached certain milestones.

The automaker had already released data on its Q3 deliveries earlier in October, but to reiterate, it made 16,992 Models S and X, delivering 15,725 of the same. Models 3 and Y production clocked in at 128,044; in total, it delivered 124,318 of these vehicles during the three months in question. Impressively, total deliveries are up 54 percent quarter-on-quarter and 44 percent year-on-year. In total, the company’s automotive business brought in $7.6 billion in revenue.

Tesla says that it has now increased capacity of Models 3 and Y production to 500,000 vehicles a year at its factory in Fremont, California, and that it expects to reach full capacity toward the end of 2020 or the beginning of 2021. It says that its plant in Shanghai, China, has increased capacity to 250,000 vehicles a year and now operates with three shifts. The company says that the factory in Berlin, Germany, is underway and that equipment should begin arriving in “the coming weeks,” with production starting next year.