Updated plot script.