By the end of the 11-month transition period, the last South African troops had been withdrawn from Namibia, all political prisoners granted amnesty, racially discriminatory legislation repealed, and 42,000 Namibian refugees returned to their homes. Just over 97% of eligible voters participated in the country's first parliamentary elections held under a universal franchise. The United Nations plan included oversight by foreign election observers in an effort to ensure a free and fair election. SWAPO won a plurality of seats in the Constituent Assembly with 57% of the popular vote. This gave the party 41 seats, but not a two-thirds majority, which would have enabled it to draft the constitution on its own.