A New Jersey appeals court has rejected a challenge to numerous local laws imposing fees on landlords, finding that the ordinances were not enacted merely to generate revenue.

In Cona v. Township of Washington, the Appellate Division panel on Wednesday distinguished the challenged ordinances from another local measure—overturned in a 2015 Appellate Division ruling, Timber Glen Phase III v. Township of Hamilton—that required licensing of landlords. In that case, the municipality’s imposition of a $100 annual license fee on landlords, in addition to fees for habitability inspections, was deemed ultra vires and unenforceable.