A very simple decoder.