Start of v2 protocol implementation