secretary to the board of control thomas babington macaulay had drafted a criminal code for india and ryan's support won him macaulay's affection. governor-general lord william bentinck was also well-disposed and when william oldnall russell, his old law-report collaborator, died in 1833, ryan was appointed chief justice of bengal in his stead.