Voters in Pennsylvania can use drop boxes to submit their mail-in ballots, a split Pennsylvania Supreme Court has ruled in a contentious issue for the battleground state in the November presidential election.

The justices ruled 5-2 Thursday in the case, captioned Pennsylvania Democratic Party v. Boockvar, that the state Election Code allows county boards of election to collect mail-in ballots filed at locations other than their polling places, which would include drop boxes that several counties—particularly in southeastern Pennsylvania, which has seen high rates of COVID-19—have sought to use. The justices, ruling 4-3, further granted a three-day extension of the absentee and mail-in ballot received-by deadline for ballots sent by Nov. 3, but not received by the county boards of election by Nov. 6.