Automatic dipole correction.

