 The waxing and waning of the fortunes of the Jewish community according to the ruler continued to the end of the 19th century, when the Serbian parliament lifted all anti-Jewish restrictions in 1889.In the aftermath of World War I, Montenegro, Banat, Bačka, Syrmia, and Baranja joined Serbia through popular vote in those regions, and this Greater Serbia then united with State of Slovenes, Croats and Serbs (from which Syrmia had seceded to join Serbia) to form the Kingdom of Serbs, Croats and Slovenes, which was soon renamed Kingdom of Yugoslavia.Serbia's relatively small Jewish community of 13,000 (including 500 in Kosovo), combined with the large Jewish communities of the other Yugoslav territories, numbering some 51,700.