Yeah I really should have gone with strict, but the script wasn't going to be that long, so I was a bit lazy. Regretting it now. :p
Cheers for spotting that, never noticed I wasn't processing a reference, probably because for some reason the code was cycling through a working hash and I never...