Add encode_value/2.
Add spoof id generation.