Added ConsoleEmulator class.