Encode type into value
Add TCP