Broke functions in plotter2 out to utils