Thanks for explanation, I've changed the code.
Feel free to tell me if there is any problems.

Cheers.