Ruter, John, active 1778-1782, Lieutenant