Add way to deserialize incoming messages.