Correcting sample drift using Fourier harmonics. (July 2018)