In 1931, Wang joined another anti-Chiang government in Guangzhou. After Chiang defeated this regime, Wang reconciled with Chiang's Nanjing government and held prominent posts for most of the decade. Wang was appointed premier just as the Battle of Shanghai (1932) began. He had frequent disputes with Chiang and would resign in protest several times only to have his resignation rescinded. As a result of these power struggles within the KMT, Wang was forced to spend much of his time in exile. He traveled to Germany, and maintained some contact with Adolf Hitler. As the leader of the Kuomintang's left-wing faction and a man who had been closely associated with Dr. Sun, Chiang wanted Wang as premier both to protect the "progressive" reputation of his government which was waging a civil war with the Communists and a shield for protecting his government from widespread public criticism of Chiang's policy of "first internal pacification, then external resistance" (i.e. first defeat the Communists, then confront Japan). Despite the fact that Wang and Chiang disliked and distrusted each other, Chiang was prepared to make compromises to keep Wang on as premier. In regards to Japan, Wang and Chiang differed in that Wang was extremely pessimistic about China's ability to win the coming war with Japan (which almost everyone in 1930s China regarded as inevitable) and was opposed to alliances with any foreign powers should the war come. While being opposed to any effort at this time to subordinate China to Japan, Wang also saw the "white powers" like the Soviet Union, Britain and the United States as equal if not greater dangers to China, insisting that China had to defeat Japan solely by its own efforts if the Chinese were to hope to maintain their independence. But at the same time, Wang's belief that China was too economically backward at present to win a war against a Japan which had been aggressively modernizing since the Meiji Restoration of 1867 made him the advocate of avoiding war with Japan at almost any cost and trying to negotiate some sort of an agreement with Japan which would preserve China's independence. Chiang by contrast believed that if his modernization programme was given enough time, China would win the coming war and that if the war came before his modernization plans were complete, he was willing to ally with any foreign power to defeat Japan even including the Soviet Union, which was supporting the Chinese Communists in the civil war. Chiang was a much more of a hard-line anti-Communist than was Wang, but Chiang was also a self-proclaimed "realist" who was willing if necessary to have an alliance with the Soviet Union. Through in the short-run, Wang and Chiang agreed on the policy of "first internal pacification, then external resistance", in the long-run they differed as Wang was more of an appeaser while Chiang just wanted to buy time to modernize China for the coming war. The effectiveness of the KMT was constantly hindered by leadership and personal struggles, such as that between Wang and Chiang. In December 1935, Wang permanently left the premiership after being seriously wounded during an assassination attempt a month earlier.