Chemical Transformation of an Intermediate in the Synthesis of Huperzine A, Leading to a Diverse Array of Molecules.