Even though enamines are more nucleophilic than their enol counterparts, they can still react selectively, rendering them useful for alkylation reactions. The enamine nucleophile can attack haloalkanes to form the alkylated iminium salt intermediate which then hydrolyzes to regenerate a ketone (a starting material in enamine synthesis). This reaction was pioneered by Gilbert Stork, and is sometimes referred to by the name of its inventor (the Stork enamine alkylation). Analogously, this reaction can be used as an effective means of acylation. A variety of alkylating and acylating agents including benzylic, allylic halides can be used in this reaction.