Added torch code so that switches can toggle them