Updated

KARACHI, Pakistan -- Floodwaters that have devastated Pakistan for five weeks headed to the Arabian Sea on Tuesday after swallowing two final towns, but the challenges of delivering emergency aid to 8 million people remained.

The floods have moved down from the mountainous northwest, submerging or affecting almost 1/5 of the country at their peak. Waters have begun to recede in the north and in Punjab, but they have been submerging towns in southern Sindh province close to the Indus River over the last 10 days.

The scale of the disaster has raised concerns about the stability of nuclear-armed Pakistan, which is already reeling under al-Qaida and Taliban violence and massive economic woes.

Government official Hadi Bakhsh said the last two towns in the path of the floods were hit late Monday.

"The floodwaters hit Khahre Jamali and Jati towns last night, and now there is no other village or town in the way of the deluge," he said, adding that people had already fled the towns, parts of which were under 10 feet of water.

"The floodwaters are now heading to the Arabian Sea," he said.

Authorities have struggled to feed, house and arrange medical care for the survivors of the floods. Foreign countries and the United Nations were slow to respond to the disaster, in part because it took a long time for its extent to become clear.

Aid is slowly reaching the worst-affected areas by army helicopter, road and boat, but millions have received little or no help. The U.N. warned that additional funding for emergency food was urgently needed to ensure supplies into next month.

Once all the floodwaters recede, the country will be left with a massive relief and reconstruction effort that will cost billions of dollars and take years. An estimated 1 million homes have been damaged or destroyed, five times as many as were hit by this year's earthquake in Haiti.