Made opening a terminal less hardcoded