Click the structures and reaction arrows in sequence to view the 3D models and animations respectively
It is also possible for the SN2 step to occur first and the imine formation second.
A discussion of thioamides and the selectivity of this reaction.