Creating handling the protocol