Added protocols encoders/decoders