An analysis of behavioral plasticity in male Caenorhabditis elegans.