Changed stuff related to terminal.