H&R Block’s fiscal second-quarter loss narrowed, helped by cost-cutting efforts. Revenue climbed mostly because of a strong tax season in Australia.

The nation’s largest tax preparation company typically turns in a loss in the August-to-October period because it takes in most of its revenue during the U.S. tax season. H&R Block’s quarterly performance beat analysts’ estimates and its stock hit the highest level in more than two years.