Added svcQueryMemory
Merge branch 'refactor'