After the failed Madiun uprising in 1948, the PKI had reorganized under the leadership of D. N. Aidit. Self-confident and gregarious, Aidit was born off the coast of Sumatra into a devout Muslim family and became a Marxist during Japan’s occupation. With Aidit as its leader, the PKI transformed into a mass-based, legal, ideologically flexible movement that rejected the armed struggle, frequently ignored Moscow’s directions, stuck close to Sukarno, and embraced electoral politics. The party was doing things very differently from the Russian or the Chinese communist parties.