Added support for pause/resume queue.