Um. Yeah. Seems to have sorted itself out since I read the last post. Have edited my previous post so as not to mislead anyone into thinking there's a problem with this script. Works great. Thanks mate. (Please feel free to mock me in a different thread.)
Great stuff thanks. (Previous post edited as the problem I highlighted was not caused by the script as I had thought, but rather occured somewhere between the keyboard and the chair).