Added a terminal interface