AddGroup now updates the scope variables