Updated Pipeline script