Thank you all. I could use Jochen's with some minor modification.