Lots of code for new plots.