Thanks for this code.. It helped.. me