I have found a better way to do all that. Thanks for challenging me ;)