Thanks I was looking on stackoverflow myself for a similar solution. At least I know what’s wrong now.