The Cuban government joined negotiations on 28 January 1988, and all three parties held a round of negotiations on 9 March. The South African government joined negotiations on 3 May and the parties met in June and August in New York and Geneva. All parties agreed to a ceasefire on 8 August. Representatives from the governments of Angola, Cuba, and South Africa signed the New York Accords, granting independence to Namibia and ending the direct involvement of foreign troops in the civil war, in New York City on 22 December 1988. The United Nations Security Council passed Resolution 626 later that day, creating the United Nations Angola Verification Mission (UNAVEM), a peacekeeping force. UNAVEM troops began arriving in Angola in January 1989.