MUX Code merged