The above is an updated version of the previous arrangement. Because the electrical code as of the 2011 update may require a neutral wire in most new switch boxes, a 3-wire cable runs between the light and switch. The red and black are used for hot and the white neutral wire at the switch box allows for powering a timer, remote control, or a programmable switch.