Implement Decoder.