Added label query functions.