Optimsed a little more, now called SCP for survival curve plotter