Dynamically set protocol