Published: Jun 26, 2010 7:50 PM EDT
Updated: Jun 26, 2010 4:51 PM EDT

HUNTSVILLE, Ontario (AP) - President Barack Obama and other G-8 leaders are agreeing on the need to confront Iran and North Korea.
      
In a joint communique from their summit in Ontario, they criticized Iran for its "lack of transparency" on its nuclear activities and its human rights record. They also condemned North Korea for allegedly torpedoing a South Korean warship in March.
      
The U.S., Britain, France, Germany, Italy, Canada, Japan and Russia are also calling current tensions in Gaza "unsustainable."
      
And they're sketching out a five-year exit strategy on Afghanistan. The statement points to a conference in Kabul next month as important check point for the training of Afghan security forces, saying it's important to accelerate efforts to make sure Afghanistan's own security forces can "assume increasing responsibility within five years."
      
The statement came at the end of a meeting of the eight powers in Canada and before a larger group of 20 nations convenes that also includes fast-growing economies like China.