Two Allegheny County lawmakers are among 20 Democratic state legislators that Pennsylvania State Police say were targeted by online threats, which led to the arrest of a suspect last week.

State Police say 42-year-old Adam G. Berryhill, of Lebanon, used an account on X, formerly Twitter, to threaten Pittsburgh-area state Sen. Lindsey Williams and state Rep. Emily Kinkead as well as 18 other Harrisburg officials.

Berryhill is being charged with making terroristic threats and is currently held at Lebanon County Prison.

Williams told WESA she learned about the threats on Tuesday after receiving a letter from a Lebanon County magisterial district judge.

“It’s not the first time I’ve had a slew of death threats,” she said. “It’s not the first time that threats against me have not been communicated to me.”

“I want something to change and I want it to change now, because I don’t want someone to get seriously injured or killed before we make a real change about how we deal with threats against legislators,” she added.

Police, who said they linked the X account to Berryhill using IP addresses and other digital information, say Berryhill posted multiple times on social media about attacking lawmakers and police, and spoke of plans to act on Memorial Day weekend.

The account, which was created in March, appears to have only 31 followers, but it sometimes replied directly to political figures. The complaint says it called House Speaker Joanna McClinton and others “gun grabbing communists.”

Among other posts, the account said opposition to Democrats should result in “war.”

“Who are these people? They don’t represent Pennsylvania. They are communist infiltrators,” the account wrote on April 7. “I’ll approach every legal avenue and when they all fail I start shootings.”

Police say Berryhill cannot legally own firearms after he was involuntarily committed for a psychiatric evaluation in 2019. Court records show he’s previously been charged with — and pleaded guilty to — making terroristic threats.

According to the police complaint, a state trooper assigned to protect McClinton learned of the threats on April 28; Berryhill was arrested on May 6. State police in Lebanon County said in a news release they were notified of credible threats on May 1.

“So for two weeks, I was on a hit list where no one told me about it,” Williams said, adding that many members on the alleged list were at a public event in a Philadelphia park the day before Berryhill’s arrest.

Senate Democratic leader Jay Costa, who was not targeted by the account, said in a statement there was “a clear communication breakdown that failed to keep legislators briefed on threats to their safety and subsequent steps taken by law enforcement.”

“I am extremely disturbed and appalled by the actions of the individual who stands accused of making violent threats towards elected officials online,” Costa said. “The safety of each and every Senator is a top priority, and I look forward to meeting with our security teams and the Pennsylvania State Police to personally ensure that all communications protocols are adhered to going forward.”

The arrest comes weeks after a gunman attempted to storm a White House Correspondents event at which President Donald Trump, cabinet officials and several members of Congress were present. It also comes one year after a gunman with a hit list killed three people, including two Democratic Minnesota state lawmakers.

The criminal complaint alleges state troopers used open-source information and public social media posts to discover where Berryhill lives, including property records, and that he had other social media accounts that had posted photos of firearms. Prior arrest records confirmed photos of Berryhill on related social media accounts with a distinct tattoo, state police said.

“Naming specific targets, expressing willingness to engage in lethal violence, referencing prior acts of political violence and outlining tactical methods demonstrates both intent and capability to carry out such threats,” the criminal complaint alleges.

It’s unclear why the account targeted these specific legislators, other than their party affiliation. But Williams said she had been threatened last year due to her support of transgender students. Fox News also publicized Williams’ remarks on the topic, a story later picked up by podcaster Joe Rogan.

“It was two weeks of voicemails, emails, phone calls — I think we even maybe got some physical letters,” Williams said.

In addition to Kinkead, Williams, and McClinton, those targeted included: state Senators Amanda Cappelletti, Maria Collett, Sharif Street, Judy Schwank, John Kane, Katie Muth and Steve Santarsiero. House members named in the threats were Jordan Harris, Benjamin Sanchez, Tim Briggs, Morgan Cephas, Malcolm Kenyatta, Rick Krajewski, Danilo Burgos, Chris Rabb, Joe Hohenstein and Marylouise Isaacson.

This story is developing and will be updated.