The Anglo-Dutch Treaty of 1824 was signed to prevent further conflict between the British and the Dutch. It enabled the British to expand their control in the Malay Peninsula without interference from other foreign powers. The 1874 Pangkor Treaty provided for direct British intervention, with Perak appointing a British Resident. Following Perak's subsequent absorption into the Federated Malay States (FMS), the British reformed administration of the sultanate through a new style of government, actively promoting a market-driven economy and maintaining law and order while combatting the slavery widely practised across Perak at the time. The three-year Japanese occupation in World War II halted further progress. After the war, Perak became part of the temporary Malayan Union, before being absorbed into the Federation of Malaya. It gained full independence through the Federation, which subsequently became Malaysia on 16 September 1963.