I've just wrote a rewrite that's better, much better, doubt anyone cares, but thought I might as well, it's a slow weekend (V2)