The Democratic Party and the presidential campaigns of Hillary Clinton and Bernie Sanders will sue the state of Arizona over voter access to the polls after the state’s presidential primary last month left thousands of residents waiting as long as five hours to vote.

The lawsuit, which will be filed Friday, focuses on Maricopa County, the state’s most populous county, where voters faced the longest lines on March 22 during the Democratic and Republican primaries after the county cut the number of polling places by 85 percent since 2008.

The lack of voting places was “particularly burdensome” on Maricopa County’s black, Hispanic and Native American communities, which had fewer polling locations than white communities and in some cases no places to vote at all, the lawsuit says.

The lawsuit calls on the U.S. District Court of Phoenix to review the polling location plan for the November election.