It is essential to use a drying tube in the setup for the mechanism, as the byproduct is water. Water drives the reaction in the backwards direction, which is not desired.