Some work on decoder.