Added checkPlotLines() fn (not yet integrated with anything)