Stalin allowed elections in which the non-communists won a majority; however, some communists were elected. They began to demand that groups which opposed them should be banned. If not, it was suggested that the Russians would take over the country. The Communist leader Rakosi then got control of the police, started to arrest his opponents, and a brutal secret police unit. By 1947 Rakosi had complete control over Hungary.