Thanks for your reply.
Yes, I finally found where to change the end script part. It's all working now!