Thanks peter, I figured that was going to be the best way of doing it.

Next stop, codeville.