Set up the protocol