First working version with 3 new plots. Rectified writing bug.