His reputation as a financial Journalist and statistician, gained in these years, led to his appointment in 1876 as head of the statistical department in the Board of Trade, and subsequently he became assistant secretary (1882) and finally controller-general (1892), retiring in 1897. As chief statistical adviser to the government, he drew up reports, gave evidence before commissions of inquiry, and acted as a government auditor.