There he asked Nehru and Mahatma Gandhi for help. Nehru assured him that India would support Indonesia and would make the support known at international forums such as the United Nations (UN). In December 1947, negotiations were held aboard and an agreement was signed in January 1948. This agreement was more favorable towards the Dutch and called for the republic to recognize the territories which the Dutch had taken during the first "Police Action". The agreement caused outrage and caused Amir Sjarifuddin to resign from his position as prime minister. Prime Ministership To replace Syarifuddin, Sukarno appointed Hatta as prime minister and declared that the cabinet would be an emergency one and would be answerable to the President instead of the KNIP. Hatta also took on the position of minister of defense. As prime minister, Hatta had to make an unpopular decision. In August 1948, with the republic struggling to pay its troops, Hatta was forced to demobilize some soldiers. In December 1948, the Dutch launched their second "Police Action" and focused their attack on Yogyakarta. Hatta and Sukarno, instead of running away to fight guerrilla warfare chose to remain in the city and were arrested. Sukarno transferred authority to the Emergency Government of the Republic of Indonesia (PDRI), before going into exile with all the other Republican leaders. Hatta was sent to Bangka. Resistance continued under General Sudirman and TNI troops who fought a guerrilla war against the Dutch. In March, Sultan Hamengkubuwono IX organized 1 March General Offensive, in which the city of Yogyakarta was held by Indonesian forces for six hours. This played an important role in causing international pressure to be put on the Netherlands. In May 1949, the Roem–Van Roijen Agreement was signed and the Netherlands promised to return the leaders of the Republican Government. In July 1949, Hatta and Sukarno made their return to Yogyakarta. In August 1949, Hatta headed a delegation to the Hague for a Round Table conference. In November 1949, the formation of the United States of Indonesia was finally agreed. It was to be a federation consisting of the Republic and 15 States which the Dutch had created during the National Revolution. The Queen of the Netherlands would continue to become the symbolic head of state while Sukarno and Hatta would continue as president and vice president. On 27 December 1949, the Dutch authorities finally recognized Indonesian sovereignty. Hatta continued