Aspirin (2-acetoxybenzoic acid) is made by acetylating the phenolic −OH group of salicylic acid (2-hydroxybenzoic acid). In one laboratory method, salicylic acid is treated with ethanoyl chloride, CH3COCl, and pyridine is added to the mixture. The acylation step is reversible. Which statement correctly gives the role of pyridine in obtaining a good yield of aspirin?