Changes to plot compare function.