Update of protocol_main.c