Gov. Tom Wolf’s administration is settling a vote-counting lawsuit stemming from the 2016 presidential election, in part by affirming a commitment it’s made previously to push Pennsylvania’s counties to buy voting systems that leave a verifiable paper trail by 2020.

Paperwork filed Thursday in Philadelphia federal court caps a lawsuit Green Party presidential candidate Jill Stein filed in 2016 as she sought recounts in Wisconsin, Pennsylvania and Michigan.

Earlier this year, the Democratic governor began pushing counties to upgrade to voting machines that leave a paper trail as a safeguard against hacking by 2020. Most Pennsylvania voters use machines that lack an auditable paper trial.

The settlement also requires counties to audit election results, starting in 2022, before they are certified, based on recommendations from a working group the state must assemble.