The reaction can be conveniently carried out by adding the acid chloride, alkyl chloroformate, sulfonyl chloride, sulfonic anhydride, isocyanate, or isothiocyanate to a solution of amine of Formula IIc or XXIII, in which Z or Za contains a secondary amine in a suitable solvent such as pyridine.