The final stages of the war created 300,000 internally displaced persons (IDPs) who were transferred to camps in Vavuniya District and detained there against their will. The camps were surrounded by barbed wire. This, together with the conditions inside the camps, attracted much criticism from inside and outside Sri Lanka. After the end of the civil war President Rajapaksa gave assurances to foreign diplomats that the bulk of the IDPs would be resettled in accordance with the 180-day plan. By January 2012, almost all the IDPs had been resettled, except 6,554 from the Divisional Secretariats of Mullaitivu district, where the de-mining work was yet to be finished.