Rewrote decoder.