In a Thursday, June 14, 2018 file photo, Tesla CEO and founder of the Boring Company Elon Musk speaks at a news conference, in Chicago.
Kiichiro Sato/AP
In a Thursday, June 14, 2018 file photo, Tesla CEO and founder of the Boring Company Elon Musk speaks at a news conference, in Chicago.
Now playing
01:39
Elon Musk steps down as Tesla chairman
Accused $50 billion Ponzi scheme swindler Bernard Madoff exits federal court March 10, 2009 in New York City. Madoff was attending a hearing on his legal representation and is due back in court Thursday.  (Photo by Mario Tama/Getty Images)
Mario Tama/Getty Images
Accused $50 billion Ponzi scheme swindler Bernard Madoff exits federal court March 10, 2009 in New York City. Madoff was attending a hearing on his legal representation and is due back in court Thursday. (Photo by Mario Tama/Getty Images)
Now playing
03:11
Bernie Madoff, infamous Ponzi schemer, dead at 82
Now playing
05:18
Coinbase CFO: We're an on-ramp to the crypto economy
A man checks vine buds during the burning of anti-frost candles in the Luneau-Papin wine vineyard in Le Landreau, near Nantes, western France, on April 12, 2021, as temperatures fall below zero degrees celsius.
Sebastien Salom-Gomis/AFP/Getty Images
A man checks vine buds during the burning of anti-frost candles in the Luneau-Papin wine vineyard in Le Landreau, near Nantes, western France, on April 12, 2021, as temperatures fall below zero degrees celsius.
Now playing
01:37
See how French winemakers are trying to save their crops from frost
SUEZ, EGYPT - MARCH 29: The container ship 'Ever Given' is refloated, unblocking the Suez Canal on March 29, 2021 in Suez, Egypt. This morning the container ship came partly unstuck from the shoreline, where it ran aground in the canal last Tuesday, and later resumed its course shortly after 3pm local time. The Suez Canal is one of the world's busiest shipping lanes and the blockage had created a backlog of vessels at either end, raising concerns over the impact on global shipping and supply chains. (Photo by Mahmoud Khaled/Getty Images)
Mahmoud Khaled/Getty Images
SUEZ, EGYPT - MARCH 29: The container ship 'Ever Given' is refloated, unblocking the Suez Canal on March 29, 2021 in Suez, Egypt. This morning the container ship came partly unstuck from the shoreline, where it ran aground in the canal last Tuesday, and later resumed its course shortly after 3pm local time. The Suez Canal is one of the world's busiest shipping lanes and the blockage had created a backlog of vessels at either end, raising concerns over the impact on global shipping and supply chains. (Photo by Mahmoud Khaled/Getty Images)
Now playing
00:57
Egypt seizes Ever Given ship, asks for $900M in compensation
CNN
Now playing
03:06
Hear doctor's message for people with J&J vaccine concerns
Barbers from King's Cutz give haircuts indoors while observing COVID-19 safety restrictions on March 13, 2021 in Los Angeles, California.
Mario Tama/Getty Images
Barbers from King's Cutz give haircuts indoors while observing COVID-19 safety restrictions on March 13, 2021 in Los Angeles, California.
Now playing
01:43
US consumer prices increased in March
Now playing
03:21
Teachers under pandemic stress are quitting: I didn't feel safe
Domino's autonomous vehicle will deliver your pizza
Domino's
Domino's autonomous vehicle will deliver your pizza
Now playing
01:12
Watch this robot deliver a Domino's pizza
Now playing
01:27
See the first community of 3D-printed homes
Now playing
04:22
Levi's CEO has message for Mitch McConnell
Elon Musk's Neuralink says this monkey is playing Pong with its mind
From Neuralink/Youtube
Elon Musk's Neuralink says this monkey is playing Pong with its mind
Now playing
01:41
Elon Musk's company says this monkey is playing Pong with his mind
CNN
Now playing
02:36
The truth behind Covid-19 vaccines for sale on the dark web
Heinz ketchup packets are shown in New York on Monday, August 22, 2005. H.J. Heinz Co., the world's biggest ketchup maker, said first-quarter profit fell 19 percent on expenses to cut jobs and sell businesses.  (Photo by Andrew Harrer/Bloomberg via Getty Images)
Andrew Harrer/Bloomberg/Getty Images
Heinz ketchup packets are shown in New York on Monday, August 22, 2005. H.J. Heinz Co., the world's biggest ketchup maker, said first-quarter profit fell 19 percent on expenses to cut jobs and sell businesses. (Photo by Andrew Harrer/Bloomberg via Getty Images)
Now playing
01:53
Restaurants face a nationwide ketchup packet shortage
CNN
Now playing
03:53
Norwegian Cruise Line CEO to CDC: We want to be treated fairly
Getty Images
Now playing
02:18
This airplane-shaped bag is selling for more than some actual planes
(CNN Business) —  

A tumultuous quarter at Tesla ended with some very good sales numbers.

The company delivered 83,500 vehicles during the third quarter, a strong performance that should calm investor fears about logistical problems and a looming cash crunch. That included almost 56,000 of the lower-priced Model 3.

Production was a bit below that number: Tesla said it built about 53,000 Model 3s. But that was within the company’s projections.

Only three months ago, the company struggled to build 5,000 Model 3s in a week, a long-delayed target. Tesla did not maintain that pace, but production was still high enough to keep the company on track to turn a sustained profit for the first time.

Tesla was sorely in need of good news.

In August, CEO Elon Musk proposed, then abandoned, plans to take the company private. The SEC sued Musk last week, claiming he had deceived investors by claiming in a tweet that he had secured financing to go private.

On Saturday, the second to last day of the quarter, Musk reached a deal with the SEC to pay a $20 million fine and step aside as chairman of Tesla. He will remain as CEO, news that relieved Wall Street on Monday.

Executives have also left the company in recent months, including the chief accounting officer, who quit after less than a month on the job.

Tesla (TSLA) stock closed down about 3% following the production and sales report.

Tesla will release revenue and profit numbers later in the quarter. The report did not give details on where those figures would come in. It did say that all Model 3s sold at the end of the quarter were the more expensive all-wheel-drive models, powered by dual electric motors.

Musk also sent an email to all Tesla employees over the weekend saying that the company was close to its goal of being profitable.

“We are very close to achieving profitability and proving the naysayers wrong, but, to be certain, we must execute really well tomorrow (Sunday),” he wrote, referring to the last day of the quarter. “If we go all out tomorrow, we will achieve an epic victory beyond all expectations.”

The company has reported only two quarters of modest profits in its 10-year history. It has reported a total of $6 billion in losses during that time.

Tesla has $1.2 billion in debt maturing within the next six months, which has prompted some analysts to project the company would need to sell additional shares or debt to raise cash.

Musk has said revenue from sales would give Tesla the cash it needs. But he also has admitted that the company has run into problems delivering its cars. That added to investor concerns about a cash crunch.

“Sorry, we’ve gone from production hell to delivery logistics hell,” Musk tweeted two weeks ago to a customer who inquired when a promised car would be delivered. “This problem is far more tractable,” he added. “We’re making rapid progress.”