Run the cable through the clamp and tighten it down. Splice the cable wires to the fan wires using a pigtail splice and a wire nut. Connect the ground to the grounding terminal in the connection box and the ground wire from the fan, if there is one.
This diagram illustrates the wiring for a circuit with gfci receptacles followed by a light and switch. By connecting the switch to the load terminals on the gfci, the light is protected against ground faults as well.
In this arrangement a light fixture and exhaust fan are wired to the same source. The light is controlled with a single-pole switch and the fan controlled with a timer as in the previous drawing. The hot source is spliced to each controlling device and the output of the controllers are connected as in the previous diagrams on this page.
This gfci wiring provides protection to a duplex receptacle. By connecting the load terminals on the last gfci, the receptacle is protected and can be used just as if it were one of the gfci receptacles. One ground fault circuit interrupter at the beginning of the circuit can be used in the same way to protect multiple, subsequent receptacles as illustrated in the diagram below.