Adding Master Code and Motor Code