Started integrating the code. First up: lines into FFT.