Thanks KB. I actually wrote the inital script myself but I was hoping someone else had a better solution. It'll have to do.