A former rabbi at the Pittsburgh synagogue where a gunman opened fire on a service killing 11 people has called on lawmakers to take action.

Rabbi Chuck Diamond, who for seven years led the Tree of Life synagogue in the neighborhood of Squirrel Hill, also said he knew many of those killed and added they were close to his heart.

“I wish the politicians on both sides of the aisle would get off their rear ends and do something significant about it,” he said. "That’s what’s frustrating.”

Gun control and mental health had to be addressed, Diamond said.

The country as a whole has experienced too many mass shootings and something had to be done, he added.

“It happens over and over and over again,” he said, adding that at this stage people sending prayers was not enough.

“What are the prayers going to do at this point? We need to take action whatever that might be," he said.

President Donald Trump lamented Saturday the "hate in our country" and condemned anti-Semitism.

But these sorts assaults are on the rise. The Anti-Defamation League reports there were nearly 2,000 anti-Semitic incidents this year — a 57 percent increase from last year.

On Saturday, Trump also said that better security at the congregation could have prevented the massacre.

"They had a maniac walk in and they didn't have any protection and that is so sad to see," Trump said at Joint Base Andrews in the Maryland suburbs Saturday before he departed for a campaign swing in the Midwest. "If you take a look at it, if they had protection inside the results would have been far better."

Pittsburgh Mayor Bill Peduto said Sunday that he disagreed with Trump's call for more armed guards in places of worship in order to prevent shootings like the one at the Tree of Life synagogue.

Instead, Peduto told NBC's "Meet the Press" Sunday that he believes gun control measures would go further to stop these shootings.

The accused gunman, Robert Bowers, entered the Tree of Life synagogue at around 9:45 a.m. on Saturday and began shooting as services got underway, authorities said. They believe the suspect was in the synagogue a total of 20 minutes.

Diamond, who is still very active in the Jewish community of Squirrel Hill, admitted that the thought of being attacked had always been “in the back of my mind.”

“I’m always thinking as I was up there leading services what if that guy looks suspicious, what’s he got under his coat,” the rabbi said. “Unfortunately, I think that’s the world we live in.”

He added that the community would pull together in face of the tragedy. "We have to overcome the hate which is surrounding us," he said.

“Everybody feels like they were attacked in that synagogue,” he added. "The community will come together, we're very strong."

The Pittsburgh Steelers tweeted their condolences Saturday and said there would be a moment of silence for the victims and their families ahead of their NFL game against the Cleveland Browns Sunday. “We send our thoughts and prayers to those affected by this morning’s tragedy in Pittsburgh,” the team tweeted.

We send our thoughts and prayers to those affected by this morning’s tragedy in Pittsburgh. We will continue to pray for everyone involved. — Pittsburgh Steelers (@steelers) October 27, 2018

The Pittsburgh Penguins, an NHL team, also tweeted their condolences. “We are incredibly saddened to hear of this morning’s tragedy at the Tree of Life synagogue in Pittsburgh,” read the tweet.