GoPro Inc. on Thursday reported a better-than-expected first quarter, topping analysts’ revenue expectations and posting a slimmer-than-anticipated loss.

The company recorded a net loss of $24 million, or 17 cents a share, compared with a loss of $76 million, or 55 cents a share, a year earlier. On an adjusted basis, GoPro GPRO, +0.24% lost 7 cents a share, whereas analysts surveyed by FactSet had been modeling 9 cents. A year prior, the company posted a 34-cent loss per share.

See also: Roku stock surge adds another $100 million to short sellers’ paper losses this year

GoPro’s revenue climbed 20% to $243 million, up from $202 million a year earlier and beating expectations for $234 million. The company disclosed that revenue from its GoPro.com site made up more than 10% of overall revenue for the first quarter and was up 90% from a year earlier.

Shares were down 1.4% in after-hours trading.

The company had more than 220,000 active paying subscribers for its GoPro Plus service as of May 8, up 10% sequentially. GoPro Plus provides unlimited cloud storage for footage and offers discounts on accessories.

Read: These 5 tech stocks are taking a beating after earnings

Citing third-party data from NPD, the company said that it captured 89% of the U.S. market for action cameras in the period and 97% dollar share. GoPro also said that its Hero7 Black was the top selling camera “in all of digital imaging” by volume.