Encapsulating the FFT Shift proiling and cleaning the code to make it simpler and more understandable.