Prime Minister Stephen Harper made a surprise trip to Iraq Saturday, meeting with the country鈥檚 prime minister and announcing a substantial new aid commitment for the war-torn region.

The Canadian government announced $139 million for Iraq, Syria, Jordan and Lebanon to help the region deal with the overwhelming refugee crisis triggered by the rise of the Islamic State (ISIS) terror group. The money is in addition to the $67 million Canada has already committed to Iraq for measures such as food relief and emergency shelter.

The trip comes as a scheduled fall election looms back home, and as Harper positions himself as a leader who will stand up to global terrorism.

It was a whirlwind trip for Harper, who arrived in Erbil Saturday after visiting Baghdad. He was greeted by the president of Iraq鈥檚 Kurdish region, Massoud Barzani, and an honour guard of peshmerga fighters. He then made his way to the presidential palace in the Green Zone, where he was welcomed with full military honours.

Harper was not far from where Sergeant Andrew Doiron was killed and three other Canadians injured in a friendly fire incident on the frontlines in early March.

With a report on the incident expected soon, Harper faced questions on Canadian soldiers鈥 mission in Iraq. Harper said he wouldn鈥檛 comment on operational plans, but that the friendly fire incident hasn鈥檛 strained relations between the Canadians and Kurds.

"We'll get the facts, but let it not obscure, frankly, the respect I think we should have for the Kurdish fighters in this area,鈥 Harper said. 鈥淏ack last summer when ISIS was literally overrunning this entire country with virtually no resistance at all these were the people who stood up and resisted them and stopped them.鈥

A Kurdish general expressed regret at what happened, saying it was an error of miscommunication. He offered his condolences to Doiron鈥檚 family.

The prime minister鈥檚 visit comes as Iraq鈥檚 Shiite-led government considers its next move in the fight to degrade ISIS in the country鈥檚 northern and western regions. Canada has committed troops and warplanes to the U.S.-led mission against the terror group in Iraq and Syria.

Harper and Iraqi Prime Minister Haider al-Abadi met for 40 minutes. They talked about the war, the brutal way ISIS has targeted ethnic minorities and efforts to stop Canadians from joining the militant group.

"We're obviously here to discuss not only our relationship, but the obviously very special issue in terms of countering ISIS," Harper said in a brief address Saturday. 鈥淵ou can be sure we will continue to work with you going forward, not just on the security problem, but on the greater humanitarian and development issues this is causing for the Iraqi people."

Haider al-Abadi praised Canada for its contribution to the fight against ISIS.

There are 69 Canadian special forces training Kurdish peshmerga fighters in northern Iraq. Canada has also contributed six CF-18 jetfighters, a CP-140 Aurora surveillance plane and a C-150 Polaris tanker to the U.S.-led air campaign bombing ISIS strongholds. The Canadian mission was recently extended to the end of March 2016.

After wrapping up his trip to Iraq, Harper arrived in Kuwait Saturday to visit the Canadian Air Force personnel conducting air strikes on ISIS in Iraq and Syria.

The prime minister鈥檚 trip was kept tight-lipped for security reasons. There was a media blackout about the trip until reporters were told an embargo was lifted. Harper is also scheduled to visit the Netherlands this week, where he will take part in celebrations for the 70th anniversary of the Liberation of Holland.

Canada鈥檚 involvement in the fight against ISIS will likely be a wedge issue between the federal parties in the lead-up to and during the scheduled October federal election. Both the NDP and Liberals voted against the mission extension in March.

With files from the Canadian Press and CTV Ottawa Bureau Chief Robert Fife