Thanks for your help. That works for this problem (it compiles at least, testing will tell for sure).