Improved imaginary unit folding.