Thanks, Mario. Your assistance would be most appreciated!
I'm not sure if I'm going to attempt this myself yet, or find someone cleverer than me to take a look (I'm just a gameplay coder really), but I suspect I will be back for some help in the future.