NEW YORK (Reuters) – Twitter Inc on Tuesday posted better-than-expected quarterly revenue and a surprise rise in monthly active users, showing its efforts to delete spam accounts and better police posts were paying off by attracting more users and ad dollars.

FILE PHOTO: A 3D-printed logo for Twitter is seen in this picture illustration made in Zenica, Bosnia and Herzegovina on January 26, 2016. REUTERS/Dado Ruvic/Illustration/File Photo

Twitter shares surged nearly 10 percent shortly after the first-quarter earnings announcement in premarket trade.

It was the company’s last quarter of disclosing its monthly active user (MAU) count, and Twitter from now on will only provide its “monetizable” daily active users, a metric it created to measure people exposed to advertising on a daily basis.

Analysts were encouraged