Separating the console code from the AsyncConsole class code