This is right. Thanks for your comments and I will modify the code as you suggested.