Added Console thread, console handler, console listener