Made the Decoder class internal