Add query functions to iqueue interface