Changed time to plot in seconds