added a timer to the plot command