Add Subprotocols helper function.