Added Switch code to raspberry