Sir Thomas Mills, Functionary in Quebec