Through its Governor, Robert Fullerton, Penang tried to convince the main EIC authority in India to continue helping the Sultan of Kedah to regain his throne. Throughout 1824, Siam aimed to expand its control towards Perak and Selangor. The dispute between the British and Dutch formally ceased when Dutch Malacca in the Malay Peninsula was exchanged with British Bencoolen in Sumatra, both parties agreeing to limit their sphere of influence through the signing of the 1824 Anglo-Dutch Treaty. In July 1825, an initial negotiation was held between Siam, represented by tributary state the Kingdom of Ligor, and the EIC. The King of Ligor promised that Siam would not send its armada to Perak and Selangor, so resolving the issue of its attacks. The British renounced any aspiration to conquer Perak or interfere in its administration, promising to prevent Raja Hasan of Selangor from making trouble in Perak, and to try to reconcile the differences between Selangor and Ligor. A month later, in August 1825, Ibrahim Shah of the Sultanate of Selangor signed a friendship and peace treaty with the EIC, represented by John Anderson, ending the long feud between the governments of Selangor and Perak. Under the treaty, Selangor gave assurances to the British that it would not interfere in the affairs of Perak; the border between Perak and Selangor was finalised; and Raja Hasan of Selangor was to be immediately exiled from Perak, paving the way for peace between the two Malay states and the resolution of the power struggle between the British and Siam.