Add encapsulation of protocols.