Demux implementation