I fed the old computer power cord through a hole in one end of the box and tied a knot in it. Also applied a little hot glue to hold it in place. I mounted the fan speed control on the other end. I had to trim the ears on the switch to get it to fit in the box. NOTE: Make sure you use a FAN control and not a LIGHT dimmer. It is more expensive than the light dimmer, but is built for 5 amps. The light dimmer won’t work, trust me ;-)