When the Red Army set up a Soviet-approved government in Hungary (1944–1945), Rákosi was appointed General Secretary of the Hungarian Communist Party (MKP) (1945). He was a member of the High National Council from 27 September to 7 December 1945. Rákosi was deputy prime minister from 1945 to 1949, and was acting Prime Minister from 1 to 4 February 1946 and on 31 May 1947. Initially, Rákosi and the Communists appeared willing to work within the system. From 1947 onwards, however, he and the Communists began pressuring the other parties to exclude those not willing to work with the Communists on the grounds that they were "fascists" or fascist sympathisers. Later on, after the Communists won complete control, Rákosi referred to this practice as "salami tactics," saying he had destroyed the non-Communist forces in the country by "cutting them off like slices of salami." The process began when Smallholder Party Prime Minister Ferenc Nagy was forced to resign in favour of a more pliant Smallholder, Lajos Dinnyés. By the 1947 elections, the Communists had won a majority, and had largely emasculated the next-largest non-Communist Party, the Social Democrats. By October 1947, Rákosi had dropped all pretense of multi-party democracy. He gave the non-Communist parties an ultimatum: cooperate with a new, Communist-dominated coalition government or go into exile. By the end of 1947, the opposition parties had largely shunted aside their more courageous members, leaving them in the hands of fellow travellers willing to do the Communists' bidding. In the summer of 1948, the Communists forced the Social Democrats to merge with them to form the Hungarian Working People's Party (MDP). However, the few remaining independent-minded Social Democrats were quickly pushed out in short order, leaving the MDP as an enlarged MKP. He also pushed out the Smallholder president, Zoltán Tildy, in favour of Social Democrat-turned-Communist Árpád Szakasits, and forced Dinnyés to resign in favour of the openly pro-Communist István Dobi. A year later, elections took place with a single list of candidates. Although non-Communists nominally still figured, in reality they were fellow travellers. This marked the onset of undisguised Communist rule in Hungary. Rákosi described himself as "Stalin's best Hungarian disciple" and "Stalin's best pupil".