Yeah, dwks is right, there was a lot more code...
But thanks very much!