Thanks everyone. I'm working on part 2 so should post it in a day or two.