Former Defense Secretaries Leon Panetta and James Mattis linked the failed summits between North Korean leader Kim Jong Un and President Donald Trump to a lack of preparation and not working with allies, reports CNBC.

“If the president of the United States is going to sit down with another leader, you better damn well be prepared in terms of what are the issues involved and what do we have to agree on so that you get something accomplished,” Panetta said when asked about Trump’s meetings with Kim.

“Yes, we made some progress in trying to restrain what happens in North Korea but I think North Korea today represents every bit as great a threat as it did before, if not more,” he added.

“We did not perhaps have the alignment of the department and we did not engage with our allies at a time where they had to read something in a newspaper about what was going on,” Mattis said alongside Panetta at the annual Reagan National Defense Forum.

On Saturday, North Korean state media said that a “very important” test was carried out at a rocket testing ground. Trump responded to the report by tweeting that Kim Jong Un risks losing “everything” if he does not take steps to denuclearize.