Changed consoleReadChannel to use pointers