Also...
Just a note: The cunningham and the main halyard both do the same thing: tension the luff of the mainsail. Depending on how you have your boat rigged, the cunningham may simply be more convenient to use. Also, since the cunningham pulls down, rather than up, it usually doesn't take as much force to get the same tensioning effect. (You're not working against the weight of the mainsail.)Some boats (like my h27) have a downhaul attached to the gooseneck, instead of (or in addition to) the cunningham. My gooseneck isn't fixed to the mast, but can slide up the mast track. When I raise my mainsail, I raise it enough to pull the gooseneck off it's resting point by 3 or 5 inches. I can then use the downhaul to tighten the luff.