Added length prefixed protocol support