Damn I can't get it to work, I'm learning scripting by the minute, but I'm still unable to understand how i use the groupnames at a later stage in the script.