Separate fd correlation and plot functions