Add more variables for groups to customize the behaviour of queue

With this modification, it's possible to customize the queue command via a preprocess subroutine.