Partially debugged joining protocol.