Lots of work done on Chart.d, especially the mainloop.