Converting PlotTime module so that it can be used in the new framework