Ok thanks for the help professorspatula, I managed to make it work