Theoretical studies of the nucleophilic substitution of halides and amine at a sulfonyl center.