Yes! That's the way, sorry for not posting the code before but i wasn't at my computer, nice to know you got it right!