U.S. President Donald Trump on Sunday backtracked on his push for a cyber security unit with Russia, tweeting that he did not think it could happen, hours after his proposal was harshly criticized by Republicans who said Moscow could not be trusted.

Trump said on Twitter early on Sunday that he and Russian President Vladimir Putin discussed on Friday forming “an impenetrable Cyber Security unit” to address issues like the risk of cyber meddling in elections.

The idea appeared to be a political non-starter. It was immediately scorned by several of Trump’s fellow Republicans, who questioned why the United States would work with Russia after Moscow’s alleged meddling in the 2016 U.S. election.

“It’s not the dumbest idea I have ever heard but it’s pretty close,” Senator Lindsey Graham of South Carolina told NBC’s Meet the Press program.

Ash Carter, who was U.S. defense secretary until the end of former Democratic President Barack Obama’s administration in January, told CNN flatly: “This is like the guy who robbed your house proposing a working group on burglary.”

Trump’s advisers, including Secretary of State Rex Tillerson and Treasury Secretary Steve Mnuchin, had recently sought to explain Trump’s cyber push.

Read More: Donald Trump Jr. Met With Russian Lawyer During Presidential Campaign

Mnuchin said on Saturday that Trump and Putin had agreed to create “a cyber unit to make sure that there was absolutely no interference whatsoever, that they would work on cyber security together.”

But Trump returned to Twitter on Sunday to play down the idea, which arose at his talks with Putin at a summit of the Group of 20 nations in Hamburg, Germany.

“The fact that President Putin and I discussed a Cyber Security unit doesn’t mean I think it can happen. It can’t,” Trump said on Twitter.

He then noted that an agreement with Russia for a ceasefire in Syria “can & did” happen.

Republican Senator John McCain of Arizona acknowledged Trump’s desire to move forward with Russia, but added: “There has to be a price to pay.”

“There has been no penalty,” McCain, who chairs the Senate Armed Services Committee, told CBS’ Face the Nation program according to a CBS transcript. “Vladimir Putin … got away with literally trying to change the outcome … of our election.”

Trump argued for a rapprochement with Moscow in his campaign but has been unable to deliver because his administration has been dogged by investigations into the allegations of Russian interference in the election and ties with his campaign.

Special Counsel Robert Mueller is investigating the matter, including whether there may have been any collusion on the part of Trump campaign officials, as are congressional committees including both the House of Representatives and Senate intelligence panels.

Those probes are focused almost exclusively on Moscow’s actions, lawmakers and intelligence officials say, and no evidence has surfaced publicly implicating other countries despite Trump’s suggestion that others could have been involved.

Moscow has denied any interference, and Trump says his campaign did not collude with Russia.

Read More: Mike Pence Touches NASA Equipment Marked ‘Do Not Touch’

Representative Adam Schiff, the top Democrat on the House Intelligence Committee, told CNN’s State of the Union program that Russia could not be a credible partner in a cyber security unit.

“If that’s our best election defense, we might as well just mail our ballot boxes to Moscow,” Schiff added.

Separately, U.S. government officials said a recent hack into business systems of U.S. nuclear power and other energy companies was carried out by Russian government hackers, the Washington Post reported on Saturday.

‘Time to move forward’ with Russia

Trump said he “strongly pressed President Putin twice about Russian meddling in our election. He vehemently denied it.”

He added: “We negotiated a ceasefire in parts of Syria which will save lives. Now it is time to move forward in working constructively with Russia!”

In Trump’s first attempt at ending the six-year Syrian civil war, the United States, Russia and Jordan on Friday reached a ceasefire and “de-escalation agreement” for southwestern Syria. The ceasefire was holding hours after it took effect on Sunday, a monitor and two rebel officials said.

Any joint U.S.-Russia cyber initiative would have been a different matter. Depending how much it veered into military or espionage operations, it could have faced major legal hurdles.

Language in the 2017 National Defense Authorization Act prohibits the Pentagon, which includes the National Security Agency and the U.S. military’s Cyber Command, from using any funds for bilateral military cooperation with Russia.

Michael McFaul, a former U.S. ambassador to Russia, also noted restrictions on sharing information with Russia that would clearly prohibit offering Moscow a sense of U.S. cyber capabilities. Russia would be similarly adverse to revealing its capabilities to the United States, he noted.

“It just will not happen,” McFaul told Reuters.

Get our Politics Newsletter. The headlines out of Washington never seem to slow. Subscribe to The D.C. Brief to make sense of what matters most. Please enter a valid email address. Sign Up Now Check the box if you do not wish to receive promotional offers via email from TIME. You can unsubscribe at any time. By signing up you are agreeing to our Terms of Use and Privacy Policy . This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply. Thank you! For your security, we've sent a confirmation email to the address you entered. Click the link to confirm your subscription and begin receiving our newsletters. If you don't get the confirmation within 10 minutes, please check your spam folder.

Contact us at letters@time.com.