I am trying to add a foot “on and off” switch to my 220 line going from the wall to my stationary sander. I have 2 hots and 1 ground coming from the wall. The foot switch (designed for 110 or 220) has 3 wires, a black, a white and a green. Do I take one of the hots from the wall and connect it to, say, the black going to the switch and attach a second wire to the white coming from the switch and continue the second wire to the terminal/tool where the hot would have gone if I were not using the switch? I assume the ground wire from the switch would be added to the ground coming from the wall heading to the tool?