Refactored the QueryDebugger to support Multible Commands