sentences:  In August 1817, Riley was appointed to be a member of the Governor's Court.In February 1818, he was elected as a Director of the Bank of New South Wales, resigning this position in January 1819.In February 1821, Riley was appointed as a Magistrate for the Territory of New South Wales.