Add functions to do fft unscrambling