Improve script
(use functions and more powerfull)