Added bindkey to _DebugQueryTuple and creating functions