Thanks for all the help, manged to get this to work finally :)