Added functions for using the terminal.