Added plotData method.