Islamic State has struck back as Iraqi forces close in on victory in Mosul, sending women suicide bombers to target soldiers as the battle for the country's second-largest city nears its end.
At least 15 people were killed in the latest assaults across Iraq.
The attacks underscore the intense violence still plaguing the battered nation and the perils that will remain even after IS militants are pushed out of Mosul.
On Monday morning in Mosul's Old City - the scene of IS's last stand, where soldiers are fast closing in on the last remaining pocket of militants - two women suicide bombers, hiding among a group of fleeing civilians, targeted Iraqi troops, killing one soldier and wounding several others.
At a camp for displaced people in Iraq's western Anbar province, a suicide bomber dressed in a woman's robe killed 14 on Sunday evening, a provincial official said.
After days of fierce battles, the militant-held territory in Mosul is rapidly shrinking, with IS now controlling just over one square kilometre in all, or just under 0.40 square miles.
Lt Col Salam Hussein, of the Iraqi Special Operations Forces, said most of the suicide bombers in Mosul are now women, with seven blowing themselves up on Monday alone.
— One America News (@OANN) July 3, 2017
He said: "Seven women faced our units but thank god our units stopped these women suicide bombers. Some women exploded themselves on fleeing families.
"This is an evil and cowardly attempt by terrorists to inflict the greatest losses on civilians and security forces."
Using women as suicide bombers is apparently the latest tactic by the militants, Sgt Ali Abdullah Hussein said.
He said: "They appeared from the basement (of a building) and they blew themselves up."
One attack happened in the area of the destroyed al-Nuri Mosque, which was the focus of the Iraqi forces' push last week.
Over the past three days, Sgt Hussein said at least four such attacks have targeted Iraqi forces as hundreds of Mosul's civilians are fleeing the battles in the Old City's congested streets.
After the explosion on Monday, another group of civilians appeared on the main road, prompting the Iraqi soldiers to immediately draw their weapons. They then yelled to the group of mostly women and children to back away and take another route out.
IS overran Mosul in a matter of days more than three years ago. The US-backed offensive to retake the city was launched last October and has lasted nearly nine months, although Iraqi political and military officials had vowed that victory would be declared by the end of 2016.
Iraqi forces launched the operation to retake the Old City in mid-June and after a dawn push last Thursday, they retook the area around the al-Nuri Mosque, which the militants had blown up just a few days earlier.
The 12th century mosque is hugely symbolic - it was from a pulpit of this mosque that IS leader Abu Bakr al-Baghdadi proclaimed the IS caliphate in July 2014.
After the Iraqi forces retook the landmark al-Nuri Mosque, prime minister Haider al-Abadi declared an end to IS's so-called caliphate and pledged victory was "near".
The suicide bombing in Anbar took place at dusk on Sunday, as authorities were accommodating families that had fled from the IS-held town of Qaim, in western Iraq, according to local councillor Taha Abdul-Ghani.
He said a police colonel was among the 14 dead, and at least 20 were wounded in the explosion.
The death toll could have been higher, Mr Abdul Ghani said, but the colonel had become suspicious about the person in the long robe and walked up to the attacker, embracing him - presumably to reduce the number of casualties - as he detonated his explosives.
Iraqi forces have pushed IS out of most of Anbar, and though there was no immediate claim of responsibility for the camp attack, it had all the hallmarks of IS, which has in the past months staged large-scale attacks elsewhere in Iraq to distract from its losses in Mosul.