Implement onion transport.