Add initial support for decoding/parsing.