Residents of east Mosul held up their children and took selfies with Iraqi counter-terrorism commander Lieutenant General Abdul-Wahab al-Saadi after his men cleared Islamic State fighters from their neighbourhoods.

But his tour on Saturday of homes once occupied by the militants was a reminder of the dangers ahead as security forces prepare to expand their offensive against the Sunni militants into west Mosul.

Flanked by bodyguards in the Mohandiseen neighbourhood, Saadi got a firsthand view of Islamic State’s meticulous planning and reign of terror as he moved from house to house, greeted by locals as a hero.

In one home were a set of instructions on how to make bombs. A large bucket was filled with screws that were packed into explosives to kill and maim. Beside the leaflets were a pair of industrial rubber gloves, wires and detonators.

Nearby a thick book described how to use Russian machine guns. Militants were also well-versed on how to employ anti-tank missiles.

The battle for Mosul, involving 100,000 Iraqi troops, members of the Kurdish security forces and Shi’ite militiamen, is the biggest ground operation in Iraq since the U.S.-led invasion of 2003.

Iraqi security forces have retaken most of east Mosul, with the help of U.S.-led coalition airstrikes which flattened rows of buildings in Iraq’s second-largest city.

The next phase, expected to kick off in a few days, could prove more difficult.

Western Mosul has many narrow streets and alleyways that tanks and other large armoured vehicles cannot pass through.

Jihadists are expected to put up a much tougher fight to hold on to their last stronghold in Iraq.

“We expect to enter the west in the next few days,” said Saadi, shortly after tearing down an Islamic State poster in anger.

Mosul, the largest city held by Islamic State across its once vast, self-proclaimed caliphate in Iraq and neighbouring Syria, has been occupied by the group since its fighters drove the U.S.-trained army out in June 2014.

Its fall would mark the end of the caliphate but the militants are widely expected to mount an insurgency in Iraq and inspire attacks in the West.

DRONES, TORTURE CHAMBER

The group’s determination and organisation were evident in several homes toured by Saadi.

Laminated guides on the range of various weapons could be found on the floor or on tables.

One house was clearly dedicated to the production of small drone aircraft used for both surveillance and attacks. Several lay scattered on the floor.