The Yugoslav government-in-exile of King Peter II in London, partly due to pressure from the United Kingdom,[3] recognized the AVNOJ government with the Treaty of Vis, signed on 16 June 1944 between the prime minister of the government-in-exile, Ivan Šubašić, and Tito.[3] With the Treaty of Vis, the government-in-exile and the NKOJ agreed to merge into a provisional government as soon as possible. The form of the new government was agreed upon in a second Šubašić–Tito agreement signed on 1 November 1944 in the recently liberated Yugoslav capital of Belgrade. DF Yugoslavia became one of the founding members of the United Nations upon the signing of the United Nations Charter in October 1945.