With the removal of state subsidies and rapid privatization in 1991, Hungary was affected by a severe economic recession. The Antall government's austerity measures proved unpopular, and the Communist Party's legal and political heir, the Socialist Party, won the subsequent 1994 elections. This abrupt shift in the political landscape was repeated in 1998 and 2002; each electoral cycle, the governing party was ousted and the erstwhile opposition elected. Like most other post-communist European states, however, Hungary broadly pursued an integrationist agenda, joining NATO in 1999 and the European Union in 2004. As a NATO member, Hungary was involved in the Yugoslav Wars.