WASHINGTON (AP) — President Joe Biden said Monday that the “Second Amendment was never absolute” and that, after the Texas elementary school shooting, there may be some bipartisan support to tighten restrictions on the kind of high-powered weapons used by the gunman.

“I think things have gotten so bad that everybody’s getting more rational, at least that’s my hope,” Biden told reporters on the White House lawn after returning to Washington.

His comments came a day after the president traveled to the shattered Texas community of Uvalde, mourning privately for three-plus hours with anguished families grieving for the 19 children and two teachers who died in the shooting. Faced with chants of “do something” as he departed a church service, Biden pledged: “We will.”

As he arrived back in Washington for Memorial Day, Biden was asked if he’s now more motivated to see new federal limits imposed on firearms.

“I’ve been pretty motivated all along,” he said. “I’m going to continue to push and we’ll see how this goes.”

In Congress, a bipartisan group of senators talked over the weekend to see if they could reach even a modest compromise on gun legislation after a decade of mostly failed efforts. That included encouraging state “red flag” laws to keep guns away from those with mental health problems.

“The Second Amendment was never absolute,” Biden said. “You couldn’t buy a cannon when the Second Amendment was passed. You couldn’t go out and buy a lot of weapons.”

There is nowhere near enough support from congressional Republicans for broader gun measures popular with the public — like a new ban on assault-type weapons or universal background checks on gun purchases. Still, Democratic advocates hope meaningful measures could still pass.

Biden said he’d not spoken to Republicans on the issue “but my guess is … they’re going to have to take a hard look.”

The president also said “it makes no sense to be able to purchase something that can fire up to 300 rounds” and added, “The idea of these high powered weapons, there’s simply no rational basis for it.”

Biden said he had taken some executive actions on guns “but I can’t outlaw a weapon” and can’t “change the background checks.”

The president said he didn’t know where congressional negotiations stand, but “there’s realization on the part of rational Republicans” that “we can’t keep repeating ourselves.”

The president and first lady Jill Biden, whose veteran son Beau died of brain tumor in 2015, were hosting a closed Memorial Day breakfast in the East Room of the White House.

The couple was later being joined by Vice President Kamala Harris, second gentleman Doug Emhoff, Secretary of Defense Lloyd Austin and Mark Milley, chairman of the Joint Chiefs of Staff, at Arlington National Cemetery to lay a wreath at the Tomb of the Unknown Solider.

Later, the Bidens planned to honor families of service members killed with the planting of a magnolia tree on the White House South Lawn.