Add more variables for groups to customize the behaviour of queue