Debugged the new PlotTools()