Implementing basic console interface.