Modifications to plot1, plot2, and plot3