It took more than a decade, but Twitter just turned a profit for the fourth quarter in a row.

It took Twitter more than a decade to become profitable, but now it seems like those profits are here to stay.

Twitter reported its fourth straight profitable quarter on Thursday. The company’s net income was $789 million for the quarter, but a lot of that was attributed to a massive “one-time release of deferred tax asset valuation allowance,” which accounted for $683 million. If you take that out, Twitter’s net income was $106 million on $758 million in revenue, which was better than expected.

In the past four quarters, Twitter’s net profit is just over $1 billion. In the four quarters prior, Twitter lost $367 million.

It’s unclear how much other one-time items may have contributed to net profit in the past — Twitter doesn’t usually mention anything. So here’s another sign the business is improving: Twitter’s adjusted earnings were $295 million for the quarter, which were up 39 percent year-over-year.

It was Twitter’s largest quarterly profit ever, and certainly a sign that the business — which has been somewhat disappointing in years past, thanks to the company’s user growth issues — has stabilized.

if(“undefined”==typeof window.datawrapper)window.datawrapper={};window.datawrapper[“5G5KY”]={},window.datawrapper[“5G5KY”].embedDeltas={“100″:737,”200″:603,”300″:550,”400″:550,”500″:536,”700″:536,”800″:536,”900″:522,”1000”:522},window.datawrapper[“5G5KY”].iframe=document.getElementById(“datawrapper-chart-5G5KY”),window.datawrapper[“5G5KY”].iframe.style.height=window.datawrapper[“5G5KY”].embedDeltas[Math.min(1e3,Math.max(100*Math.floor(window.datawrapper[“5G5KY”].iframe.offsetWidth/100),100))]+”px”,window.addEventListener(“message”,function(a){if(“undefined”!=typeof a.data[“datawrapper-height”])for(var b in a.data[“datawrapper-height”])if(“5G5KY”==b)window.datawrapper[“5G5KY”].iframe.style.height=a.data[“datawrapper-height”][b]+”px”});

Twitter also reported a loss of nine million monthly active users, a decline it had prepared Wall Street for . The company has said this decline in MAUs is mostly due to its efforts to clean up the “health” of the service, something CEO Jack Dorsey reiterated in a statement Thursday.

“We’re achieving meaningful progress in our efforts to make Twitter a healthier and valuable everyday service,” Dorsey said. “We’re doing a better job detecting and removing spammy and suspicious accounts at sign-up.”

Twitter also listed other reasons its user base declined. For example, Twitter said that GDPR, Europe’s strict new data privacy law, also played a role in its user base decline.

if(“undefined”==typeof window.datawrapper)window.datawrapper={};window.datawrapper[“sR6n6”]={},window.datawrapper[“sR6n6”].embedDeltas={“100″:614,”200″:525,”300″:500,”400″:500,”500″:475,”700″:475,”800″:475,”900″:475,”1000”:475},window.datawrapper[“sR6n6”].iframe=document.getElementById(“datawrapper-chart-sR6n6”),window.datawrapper[“sR6n6”].iframe.style.height=window.datawrapper[“sR6n6”].embedDeltas[Math.min(1e3,Math.max(100*Math.floor(window.datawrapper[“sR6n6″].iframe.offsetWidth/100),100))]+”px”,window.addEventListener(“message”,function(a){if(“undefined”!=typeof a.data[“datawrapper-height”])for(var b in a.data[“datawrapper-height”])if(“sR6n6″==b)window.datawrapper[“sR6n6”].iframe.style.height=a.data[“datawrapper-height”][b]+”px”});

Twitter’s daily user base, meanwhile, was up 9 percent over the same quarter a year ago. Twitter still doesn’t break out how large that audience actually is, just how much it’s growing. Still, the company is using that as a sign that its product is improving.

“This quarter’s strong results prove we can prioritize the long-term health of Twitter while growing the number of people who participate in public conversation,” Dorsey added.

Investors liked what they saw. Twitter stock was up more than 13 percent in pre-market trading.

if(“undefined”==typeof window.datawrapper)window.datawrapper={};window.datawrapper[“CEEJT”]={},window.datawrapper[“CEEJT”].embedDeltas={“100″:592,”200″:525,”300″:500,”400″:500,”500″:500,”700″:500,”800″:500,”900″:500,”1000”:500},window.datawrapper[“CEEJT”].iframe=document.getElementById(“datawrapper-chart-CEEJT”),window.datawrapper[“CEEJT”].iframe.style.height=window.datawrapper[“CEEJT”].embedDeltas[Math.min(1e3,Math.max(100*Math.floor(window.datawrapper[“CEEJT”].iframe.offsetWidth/100),100))]+”px”,window.addEventListener(“message”,function(a){if(“undefined”!=typeof a.data[“datawrapper-height”])for(var b in a.data[“datawrapper-height”])if(“CEEJT”==b)window.datawrapper[“CEEJT”].iframe.style.height=a.data[“datawrapper-height”][b]+”px”});