added a variable to set the queue holding time