First working version of call to plot script