Use glogal scope usart for console, restructuralize console usage