Decoder designed by type.