Sorry for that, I copy/pasted a bunch of code from somewhere and not verified it was good (bad developper, bad !)