Setting up the protocols