I didn't manage yet to visit my lab (upstairs) to compile and try my code for you !
I hope this weekend