@toufikhayek, maybe you could also have a look at this post discussed previously that should give you some hints on doing the same:
And this post too …
Or even this post …