Changes to plot to improve performance.