Thanks Taqyon for the sample code. Simple and elegant.