Warren, Richard, active 1690-1706, Under secretary of State