Added a pending task queue.