Version with inbound and outbound gateways