Yes, it is quite a complicated process! But everything else seemed to work.

Can you tell me what code/file/JS is responsible for the function that I have lost?

Thanks