Added support for dequeue tasks