Aurora Cannabis Inc. nearly quadrupled its revenue and claimed a strong market share in an earnings report Monday that detailed the first quarter of legal recreational-pot sales in Canada, but also showed off large losses and a shrinking margin.

Aurora ACB, +15.82% ACB, +15.14% disclosed losses of C$237.8 million on net revenue of C$54.2 million, after reporting a profit of C$7.7 million on sales of C$11.7 million a year ago. Large losses were expected due to a decline in marijuana-related equities last quarter, as Aurora has invested heavily in other companies in the industry and must track their performance as part of its earnings — Aurora said that those adjustments accounted for about C$190 million of its losses.

Aurora shares bounced around in late trading, and were down 1.9% in early trade Tuesday. The stock had gained 55.7% in the past six months, as the S&P 500 index SPX, +1.05% dropped 4.4%.

The results reflect the launch of legal marijuana sales in Canada, the first industrialized nation to allow recreational-pot sales nationwide. Aurora claimed a large market share for Canada in the launch quarter, with $21.6 million of its revenue coming from its home country.

Marijuana IPOs in 2019: These companies could be the next hot pot stocks

“Based on available data released by Health Canada for the Q2 2019 period, Aurora accounted for approximately 20% of all consumer sales across the country,” Aurora said in its announcement.

Canadian provinces struggled to obtain marijuana for its new stores, and there were several reports of demand issues as producers tried to catch up. Aurora Chief Commercial Officer Cam Battley noted the difficulties in a conference call Monday afternoon.

“While the start of consumer sales did encounter its challenges — which is to be expected with any brand new and extremely complex new system — we responded and delivered solid execution,” Battley said.

Aurora announced in January that it expected revenue of C$50 million to C$55 million, net of excise taxes. Not enough analysts cover the company for a worthy consensus estimate. Aurora shares bounced around in late trading, but mostly showed small gains of less than 2% after its numbers were released.

Don’t miss: How marijuana companies can profit without selling pot

Aurora’s shrinking margin may be more worrisome than the stock-influenced quarterly loss. Aurora said its gross margin on cannabis sales shrank to 54% from 70% in the prior quarter and 63% in the year-ago quarter. Aurora stuck by its goal of showing adjusted profit in the fiscal fourth quarter, however, and spoke optimistically about making that a repeatable goal.

“We have reached an inflection point and we anticipate that we will be entering a period of sustained adjusted Ebitda profitability fuelling further growth of the organization on a global scale,” Battley said in the conference call.

Aurora executives pointed to several reasons for the shrinking gross margin, including the costs of ramping up its production and distribution operations and covering excise taxes for medical-marijuana patients because it disagrees with Canada’s decision to charge those taxes. Chief Financial Officer Glen Ibbott said that Aurora paid C$3 million in excise taxes for medical-marijuana patients in the quarter.

“The decrease [in gross margin] was primarily due to a lower average selling price per gram of dried cannabis, the impact of excise taxes on medical cannabis net revenues, and a temporarily lower proportion of cannabis oil sales in the company’s sales mix ratio. Also impacting gross margin were increased packaging requirements under the Cannabis Act and one-time ramp-up and optimization costs as our Sky facility was brought up to full production,” Aurora said in its announcement, referencing its marijuana-grow facility in Edmonton. “The company anticipates that the launch of new derivative product lines, once allowed under Health Canada regulations, will contribute to improving margins.”

Marijuana stocks to watch: Aurora Cannabis investments may be more valuable than its pot

Previously, Aurora earnings were boosted by its wide-ranging investments in other marijuana-related companies, but a downturn in pot stocks at the end of last year was expected to hit the company’s bottom line in this report. That hasn’t stopped Aurora from continuing to invest, including acquiring a medical-marijuana distributor in Mexico and investing in High Tide Inc. late last year, as well as announcing the purchase of one of the last independent members of the so-called “blessed eight” in January.

The company announced Monday morning that it had shipped its first cannabis oil to the United Kingdom. Aurora previously said that it is shipping marijuana to more than 20 countries.