Implemented the plots.