Implemented Shell and server query functions