Some small refactorings, Still needs to fix coloring in UnManagedConsole