A detailed investigation of the aza-Prins reaction.