After the disturbances in Sarawak successfully quelled, James Brooke met Pengiran Muda Hashim in Kuching to ensure his promises were kept. Pengiran Muda Hashim agreed to honour his promise. In 1842, Sultan Omar Ali Saifuddin II confirmed the appointment of James Brooke as the Governor of Sarawak in a treaty. The treaty officially recognised James Brooke as the Raja of Sarawak and the Sultan had to cede Sarawak to James Brooke. The ceding of Kuching to Brooke marked the beginning of further cessation of territories to James Brooke and later, the British North Borneo Company.