change starting and stopping queue time configuration to parameters