Mahathir exercised caution in his first two years in power, consolidating UMNO's leadership and, with victory in the 1982 general election, the government. In 1983, Mahathir commenced the first of a number of battles he would have with Malaysia's royalty during his premiership. The position of Yang di-Pertuan Agong, the Malaysian head of state, was due to rotate into either the elderly Idris Shah II of Perak or the controversial Iskandar of Johor, who had only a few years earlier been convicted of manslaughter. Thus Mahathir had grave reservations about the two Sultans, who were both activist rulers of their own states. Mahathir tried to pre-emptively limit the power that the new Agong could wield over his government, introducing to parliament amendments to the Constitution to deem the Agong to assent to any bill that had not been assented within 15 days of passage by Parliament. The proposal would also remove the power to declare a state of emergency from the Agong and place it with the prime minister. The Agong at the time, Ahmad Shah of Pahang, agreed with the proposals in principle but baulked when he realised that the proposal would also deem Sultans to assent to laws passed by state assemblies. Supported by the Sultans, the Agong refused to assent to the constitutional amendments, which had by then passed both houses of Parliament with comfortable majorities. When the public became aware of the impasse, and the Sultans refused to compromise with the government, Mahathir took to the streets to demonstrate public support for his position in mass rallies. The press took the side of the government. However, a large minority of Malays, including conservative UMNO politicians, and an even larger proportion of the Chinese community supported the Sultans. After five months, the crisis resolved, as Mahathir and the Sultans agreed to a compromise. The Agong would retain the power to declare a state of emergency. However, if he refused to assent to a bill, the bill would be returned to Parliament, which could then override Agong's veto.