Add blocking mode for queues