Added some user query functions