Added support for named queues and custom indexes.