Set protocol dynamically