Added mirror API
Move DebugCommandProcessor to closure