Moving console client specific logic away from the library.