It's been a while since I wrote this piece of code - I can't remember why I did this! - I'll remove it unless I can think of a reason not to.