Bovey, John, Peruvian consul