Added beginnings of plot data output