Original: Foster was unsuccessful in a bid to return to the House in 1890, but was appointed by Benjamin Harrison a year later to become Secretary of the Treasury upon the death of William Windom.
Simplified: Foster served till 1893 in that position.