 Raffles returned to Singapore in 1822 and became critical of many of Farquhar 's decisions , despite Farquhar 's success in leading the settlement through its difficult early years . For instance , in order to generate much @-@ needed revenue , Farquhar had resorted to selling licenses for gambling and the sale of opium , which Raffles saw as social evils . Shocked at the disarray of the colony , Raffles set about drafting a set of new policies for the settlement . He also organized Singapore into functional and ethnic subdivisions under the Raffles Plan of Singapore . Today , remnants of this organization can still be found in the ethnic neighborhoods . William Farquhar was also stripped off his post . Farquhar later died in Perth , Scotland . 
