Preparing the terminal.