Jooel, I get an error when I run your code. It says: ERROR : invalid method/function call: missing required parameter 1! on line 2...

How can I use the groups within the script to build the menu?