DislikedNub, brilliant, many thanks.
I've updated the files in post #1 with the fix. I'm too lazy to rename everything to v311, so it will simply stay v310. The 16 traders who have downloaded the v310 ZIP will need to download it again - sorry for any inconvenience.
DavidIgnored